I.T. Discussion Community!
-Collapse +Expand
Prism
Search Prism Group:

Advanced
-Collapse +Expand Prism To/From
To/FromCODEGuides
-Collapse +Expand Prism Study Test
PRESTWOODCERTIFIED
-Collapse +Expand Prism Store
PRESTWOODSTORE

Prestwood eMagazine

October Edition
Subscribe now! It's Free!
Enter your email:

   ► KB ►► ProgrammingDelphi Prism   Print This    All Groups  

Delphi Prism Most Read KB Posts

Page Contents


Most Read KB Articles Since 3/28/2008

Delphi Prism Group

  KB Article    

Joshua Delahunty
1. Learning ASP.NET with Delphi - setting up Cassini Web Server

Some initial tips on the road to using Delphi to program ASP.NET web pages.

Posted to KB Topic: Delphi for .Net Archive
13 years ago, and updated 10 years ago

KB Post
Nothing New Since Your Last Visit
145777
Hits

Joshua Delahunty
2. Deploying Delphi for .NET ASP.NET pages

Tips on deploying ASP.NET pages written with Delphi for .NET 2006

Posted to KB Topic: Delphi for .Net Archive
13 years ago, and updated 10 years ago
(2 Comments )

KB Post
Nothing New Since Your Last Visit
21368
Hits

Mike Prestwood
3. Delphi Prism Finalizer (finalize())

Unlike Delphi, Delphi Prism uses the .Net garbage collector to free managed object instances. Prism does not have nor need a true destructor.

In .Net, a finalizer is used to free non-managed objects such as a file or network resource. Because you don't know when the garbage collector will call your finalizer, Microsoft recommends you implement the IDisposable interface for non-managed resources and call it's Dispose() method at the appropriate time.

Posted to KB Topic: OOP
10 years ago, and updated 10 years ago

Code

Article
Nothing New Since Your Last Visit  
19836
Hits

Mike Prestwood
4. Delphi Prism Custom Routines (method, procedure, function)

In Prism, everything is within a class (just like with C#, VB.Net, and Java). So you create class methods using the method keyword. Alternatively, you can use procedure or function if you want the compiler to enforce returning or not returning a value.

Posted to KB Topic: Language Basics
11 years ago, and updated 10 years ago

Code

KB Post
Nothing New Since Your Last Visit
19571
Hits

Mike Prestwood
5. Delphi Prism Class Member Visibility Levels

In Prism, you specify each class and each class member's visibility with a Class Member Visibility Level preceding the return type. Like Delphi, you group member declarations as part of defining the interface for a class in the Interface section of a unit.

Unlike Delphi, Prism supports a traditional OO approach to member visibility with additional .Net type assembly visibility. For example, private members are truly private to the class they are declared in. In Delphi for Win32, you use strict private for true traditional private visibility.

Prism also supports assembly and protected and assembly or protected which modify the visibility of protected members to include only descendants in the same assembly (and) or publicly accessible from assembly and descendant only outside (or). OO purist might object to assembly and protected and assembly or protected and I suggest you choose the traditional private, protected, and public as your first chose at least until you both fully understand them and have a specific need for them.

Posted to KB Topic: OOP
11 years ago, and updated 10 years ago
(4 Comments , last by mprestwood )

Code
Nothing New Since Your Last Visit  
16861
Hits

Mike Prestwood
6. Delphi Prism Constructors (constructor + class name)

Prism uses unnamed constructor methods for constructors. Prism also supports a Create constructor method for backward compatibility with Delphi for Win32.

Posted to KB Topic: OOP
10 years ago, and updated 10 years ago

Code

Article
Nothing New Since Your Last Visit  
15839
Hits

Mike Prestwood
7. Delphi Prism Empty String Check (length)

In Prism, a string can be nil (unassigned), assigned an empty string (""), or assigned a value.  Therefore, to check if a string is empty, you have to check against both nil and (""). Alternatively, you can check the length of the string or use String.IsNullOrEmpty.

Posted to KB Topic: Delphi Prism
10 years ago

Code

KB Post
Nothing New Since Your Last Visit
15171
Hits

Mike Prestwood
8. Delphi Prism Interfaces

With Prism, you use the Interface keyword to define an interface and then you include one or more interfaces where you specify the single class inheritance (separated by commas).

Posted to KB Topic: OOP
11 years ago, and updated 10 years ago
(1 Comments , last by mtiede )

Code

Article
Nothing New Since Your Last Visit
14999
Hits

Mike Prestwood
9. Delphi Prism Overloading (implicit)

Like Delphi, Prism supports overloading. However, Prism supports implicit overloading (no need for an overload keyword).

Posted to KB Topic: Language Details
10 years ago

Code

KB Post
Nothing New Since Your Last Visit
14711
Hits

Mike Prestwood
10. Delphi Prism String Concatenation (+)

Unlike Delphi, Prism performs implicit casting. To concatenate two strings, a string to an integer, or a string to a floating point number, use the + operator. For example, to convert a floating point number to a string just concatenate an empty string to the number as in "" + 3.2.

Posted to KB Topic: Language Basics
10 years ago, and updated 10 years ago
(3 Comments , last by mtiede )

Code

KB Post
Nothing New Since Your Last Visit
14145
Hits



Most Read by Members

Delphi Prism Group

  KB Article    

Mike Prestwood
1. Delphi Prism Class Member Visibility Levels

In Prism, you specify each class and each class member's visibility with a Class Member Visibility Level preceding the return type. Like Delphi, you group member declarations as part of defining the interface for a class in the Interface section of a unit.

Unlike Delphi, Prism supports a traditional OO approach to member visibility with additional .Net type assembly visibility. For example, private members are truly private to the class they are declared in. In Delphi for Win32, you use strict private for true traditional private visibility.

Prism also supports assembly and protected and assembly or protected which modify the visibility of protected members to include only descendants in the same assembly (and) or publicly accessible from assembly and descendant only outside (or). OO purist might object to assembly and protected and assembly or protected and I suggest you choose the traditional private, protected, and public as your first chose at least until you both fully understand them and have a specific need for them.

Posted to KB Topic: OOP
11 years ago, and updated 10 years ago
(4 Comments , last by mprestwood )

Code
Nothing New Since Your Last Visit  
16861
Hits

Mike Prestwood
2. Delphi Prism Code Blocks (begin..end)

Same as in Delphi for Win32 but Prism also supports inline variable declaration.

Posted to KB Topic: Language Basics
11 years ago, and updated 10 years ago
(2 Comments , last by mprestwood )

Code

KB Post
Nothing New Since Your Last Visit
12607
Hits

Mike Prestwood
3. Introducing Delphi Prism. The new Delphi.Net!

Embarcadero Technologies and RemObjects Software have announced Delphi Prism, a next generation development suite for .NET and Mono, based on RemObjects Software's Oxygene compiler technology.

Delphi Prism will replace both Delphi for .NET and the existing Oxygene product, allowing the two companies to work together on providing one unified solution for managed development.

Key Points:

  • Delphi Prism screen shot.Install Delphi Prism as a plug-in to Visual Studio or run as a standalone development tool.
  • Targets .Net and Mono.
    • Target .NET applications using the latest Microsoft .NET 3.5 technologies such as WinForms, WPF, Silverlight, ASP.NET, and LINQ'
    • Mac OS X and Linux with open source CLR technologies such as Mono and Cocoa#'
  • No VCL.Net (this Delphi for .Net feature was dropped).
  • Build Windows applications first and foremost but also build Mac and Linux applications for added flexibility.
  • Integrated managed code database engine targeting Windows, Mac OS X, and Linux.
  • Supports all CLS features such as generics, sequences, queries and parallel computing.
Posted to KB Topic: Delphi Prism
11 years ago, and updated 11 years ago

News
Nothing New Since Your Last Visit
11677
Hits

Mike Prestwood
4. Delphi Prism Comments (// or { ... } or (* ... *))

Delphi uses // for a single line comment and both {} and (**) for multiple line comments. Although you can nest different types of multiple line comments, it is recommended that you don't. Commenting code generally has three purposes: to document your code, for psuedo coding prior to coding, and to embed compiler directives. Most languages support both a single line comment and a multiple line comment. Some languages also use comments to give instructions to the compiler or interpreter. A special comment. Delphi compiler directives are in the form of {$DIRECTIVE}. Of interest for comments is using the $IFDEF compiler directive to remark out code.

Posted to KB Topic: Delphi Prism
11 years ago, and updated 10 years ago
(1 Comments , last by lynn.l )

Code
Nothing New Since Your Last Visit  
7827
Hits

Mike Prestwood
5. Delphi Prism Overloading (implicit)

Like Delphi, Prism supports overloading. However, Prism supports implicit overloading (no need for an overload keyword).

Posted to KB Topic: Language Details
10 years ago

Code

KB Post
Nothing New Since Your Last Visit
14711
Hits

Mike Prestwood
6. Delphi Prism Class..Object (class..end..new)

Declare your class in the Interface section. Then implement the class in the Implementation section. To create an object instance, use the New keyword. Optionally, you can use Create for backword compatibility with Delphi if you turn it on in the compatibility options. Since Prism does have a garbage collector, you do not have to free the object. If you need to free either unmanaged resources or resources where "timing" is important, implement IDisposable and take control of freeing the object yourself using Dispose.

Posted to KB Topic: OOP
11 years ago, and updated 10 years ago
(1 Comments , last by mtiede )

Code

Article
Nothing New Since Your Last Visit
14039
Hits

Mike Prestwood
7. VCL.Net in Delphi Prism I'm a big fan of VCL.Net. Is VCL.Net a part of Delphi Prism?
Posted to KB Topic: Tool Basics
11 years ago
(1 Comments , last by mtiede )

FAQ
Nothing New Since Your Last Visit
10070
Hits

Mike Prestwood
8. Delphi Prism Polymorphism

Prism supports the following types of polymorphism:

Posted to KB Topic: OOP
10 years ago, and updated 10 years ago
(1 Comments , last by mtiede )

Code
Nothing New Since Your Last Visit
9394
Hits

Mike Prestwood
9. Delphi Prism String Concatenation (+)

Unlike Delphi, Prism performs implicit casting. To concatenate two strings, a string to an integer, or a string to a floating point number, use the + operator. For example, to convert a floating point number to a string just concatenate an empty string to the number as in "" + 3.2.

Posted to KB Topic: Language Basics
10 years ago, and updated 10 years ago
(3 Comments , last by mtiede )

Code

KB Post
Nothing New Since Your Last Visit
14145
Hits

Mike Prestwood
10. Delphi Prism Deployment Overview

Prism projects require the .Net framework and any additional dependencies you've added such as Crystal Reports.

In Visual Studio.Net, you can create a Setup and Deployment project by using any of the templates available on the New Project dialog (Other Project Types).

Prism doesn't directly support ClickOnce. At least not yet. In other words, there isn't a Security tab on the solution properties dialog. To create a ClickOnce deploy package, search the internet for mage.exe and mageui.exe.

In addition, you can use any of the many free and commercially available installation packages.

Posted to KB Topic: Tool Basics
10 years ago

Code
Nothing New Since Your Last Visit
7602
Hits
Icon Legend:
Recent or not:
- Recent activity (within last two weeks).
- No activity last two weeks.
 Since your last logged visit:
- New to you or updated since your last visit (sign in now to activate).
- NOT new to you since your last visit (sign in now to activate).

Follow PrestwoodBoards on: 


©1995-2019 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech