IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
Delphi
Search Delphi Group:

Advanced
-Collapse +Expand Delphi To/From
To/FromCODEGuides
-Collapse +Expand Delphi Store
PRESTWOODSTORE

Prestwood eMagazine

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

   ► KB ►► ProgrammingDelphi for W...   Print This    All Groups  

Pascal and Delphi Coding Most Read KB Posts

Page Contents


Most Read KB Articles Since 3/28/2008

Pascal and Delphi Coding Group

  KB Article    

Mike Prestwood
1. A 10 Minute Delphi Console App Quick Start

Create a classic "Hello, World" Windows native code Console App using Delphi. This tutorial is based on Borland Developer Suite 2006 but you can use any version of Delphi you wish. In this tutorial, you will create a classic "Hello, World!" windows console application. A console application is a type of Windows application that has FULL access to the Win32 API, but it's GUI is limited to a DOS-like text window. When Windows starts a console application, it creates a text-mode console window where the program can display text and the user can interact with the program via the keyboard.

Posted to KB Topic: Language Basics
10 years ago
(4 Comments , last by John.S11 )

Article
Nothing New Since Your Last Visit
212911
Hits

Mike Prestwood
2. Delphi 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. 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: Language Basics
10 years ago, and updated 10 years ago
(13 Comments , last by Marcos.H )

Code

Article
Nothing New Since Your Last Visit  
35315
Hits

Mike Prestwood
3. Delphi Member Visibility

Up until D2005, private and protected were not implemented strictly. Starting with D2005, a traditional strict versions of OOP are supported using the strict keyword. OO purist will want you to use strict private over private and strict protected over protected. I suggest you follow that advice until you both fully understand the differences and have a specific need. Delphi offers a special published specifier which is the same as public members but runtime type information (RTTI) is generated.

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

Code

Article
Nothing New Since Your Last Visit  
31990
Hits

Mike Prestwood
4. Get NIC MAC Address

This code snippet shows you how to get your NIC MAC address using Borland Delphi.

Posted to KB Topic: Coding Tasks
15 years ago, and updated 8 years ago
(4 Comments , last by Wes )

KB Post
Nothing New Since Your Last Visit
31067
Hits

Scott Wehrly
5. Large Fonts and Windows Controls This topic discusses the issues surrounding Delphi forms running on a desktop with large fonts enabled.
Posted to KB Topic: Tool Basics
15 years ago, and updated 15 years ago
(2 Comments , last by Anonymous )

KB Post
Nothing New Since Your Last Visit
27327
Hits

Mike Prestwood
6. Delphi Report Tools Overview

Rave Reports comes closest to a Delphi standard now but historically there has been no real standard in Delphi development. Do-it-yourself developers sometimes like to use TPrinter for very simple reports. ReportSmith was bundled with the first few versions of Delphi.

Delphi has offered many embedded VCL component report options. Quick Reports has been a part of Delphi since Delphi 2.0 and has been the default report writer for many Delphi developers. Ace Reporter, ReportBuilder and Rave Reports are also very popular. During the time of Kylix, FastReports was popular because of it's cross-platform nature.

Posted to KB Topic: Language Basics
10 years ago, and updated 9 years ago
(3 Comments , last by Uwais.Q )

Code

KB Post
Nothing New Since Your Last Visit
26294
Hits

Mike Prestwood
7. Associative Arrays in Delphi/Object Pascal (Use TStringList)

TStringList Example
Object Pascal doesn't have a native associative array, but you can use a TStringList the same way. (Alternatively, search the Internet for TStringHash and THashedStringList classes for implementations of a true associative array).

Posted to KB Topic: Language Details
10 years ago, and updated 10 years ago
(6 Comments , last by Uwais.Q )

Code
Nothing New Since Your Last Visit
24912
Hits

Mike Prestwood
8. Delphi Inheritance (=class(ParentClass))

In Delphi, you use the class keyword followed by the parent class in parens. If you leave out the parent class, your class inherits from TObject.

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

Code

KB Post
Nothing New Since Your Last Visit  
24211
Hits

Mike Prestwood
9. Delphi If Statement (If..Else If..Else)

Notice in the more complete example that the semicolon for the begin..end block after end is not included. That tells the compiler something else is coming (the statement is not finished). Also note the semicolon is missing right before the final "else" statement.

Note: The following example uses floating point literals. In Delphi, to specify a fractional floating point literal between 1 and -1, you preceed the decimal with a 0; otherwise, you will get a compiler error (i.e. .1 + .1 does not work).

Posted to KB Topic: Language Basics
10 years ago, and updated 9 years ago
(6 Comments , last by Uwais.Q )

Code
Nothing New Since Your Last Visit
23546
Hits

Mike Prestwood
10. Delphi Class Helpers (class helper for)

Delphi allows you to extend an existing class without using inheritance. Buggy in 2005 and not officially supported but stable and usable in 2006 and above. You declare a class helper similiar to how you declare a class but use the keywords class helper for.

  • You can name a helper anything.
  • Helpers have access only to public members of the class.
  • You cannot create an object instance directly from a class helper.
  • self refers to the class being helped.
Posted to KB Topic: OOP
9 years ago, and updated 8 years ago

Code

Article
Nothing New Since Your Last Visit  
22946
Hits



Most Read by Members

Pascal and Delphi Coding Group

  KB Article    

Mike Prestwood
1. A 10 Minute Your First Delphi Class Quick Start

Beginners example of creating and using a class. Early versions of Delphi use the standard OO private, protected, and public visibility specifiers plus add published for RTTI info. Later versions of Delphi add strict private and strict protected for a true OO implementation.

Posted to KB Topic: OOP
10 years ago
(2 Comments , last by laquqob.m )

Article
Nothing New Since Your Last Visit  
16853
Hits

Wes Peterson
2. Delphi Best Practices I - Handling TForm.OnCloseQuery

In this first installment of a New Knowledge Base Series I'll discuss The TForm.OnCloseQuery Event which too frequently goes unhandled.

Posted to KB Topic: Coding Tasks
10 years ago, and updated 8 years ago
(10 Comments , last by Mcdonald.L )

Article
Nothing New Since Your Last Visit
20218
Hits

Wes Peterson
3. Delphi Best Practices 2: Reusable Main Forms

How often have you started a new Delphi project, then spent some time fleshing out the default main form provided by Delphi?

This task only needs to be done once or twice. Delphi then allows us to re-use this work at the start of each new project.

Source code is included.

Posted to KB Topic: Coding Tasks
9 years ago

Article
Nothing New Since Your Last Visit
22529
Hits

Mike Prestwood
4. Delphi 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. 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: Language Basics
10 years ago, and updated 10 years ago
(13 Comments , last by Marcos.H )

Code

Article
Nothing New Since Your Last Visit  
35315
Hits

Wes Peterson
5. TADOTable: When The Obvious Can Be Wrong!

With the introduction of support for ADO Database access, Borland gave us TADOTable, a quick, easy-to-use component to begin the job of outfitting an existing application with a newer database. But TADOTable is no TTable! It comes with some baggage you can do without.

Posted to KB Topic: ADO
10 years ago, and updated 7 years ago
(1 Comments , last by Jack.P )

Article
Nothing New Since Your Last Visit
17766
Hits

Mike Prestwood
6. Delphi Overloading (overload)

Object Pascal

  • Operator - Yes. But not Pascal.
  • Method - Yes.  
Posted to KB Topic: Language Details
10 years ago, and updated 9 years ago

Code

Article
Nothing New Since Your Last Visit
19288
Hits

Mike Prestwood
7. Delphi Inheritance (=class(ParentClass))

In Delphi, you use the class keyword followed by the parent class in parens. If you leave out the parent class, your class inherits from TObject.

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

Code

KB Post
Nothing New Since Your Last Visit  
24211
Hits

Mike Prestwood
8. A 10 Minute Delphi 2009 Paradox BDE TTable Quick Start

This KB Post addresses accessing Paradox tables through the BDE using TDatasource, TTable, and TDBGrid. This tutorial was updated for Delphi 2009 but applies to all versions of Delphi.

Posted to KB Topic: BDE
15 years ago, and updated 8 years ago
(2 Comments , last by stephanie.f )

KB Post
Nothing New Since Your Last Visit
15939
Hits

Mike Prestwood
9. Delphi Inlining (Inline)

Delphi introduced developer defined function and procedure inlining with Delphi 2005. Use the inline keyword to tell the compiler to inline a routine. Since Delphi will always inline the routine, make sure you test for speed because inlining a routine can lead to slower code under some circumstances.

Posted to KB Topic: Language Details
9 years ago
(3 Comments , last by Lucinda.H )

Code
Nothing New Since Your Last Visit  
14246
Hits

Mike Prestwood
10. A 10 Minute Delphi for Win32 Quick Start Create a classic "Hello, World" Windows native code application using Delphi. This tutorial is based on Borland Developer Suite 2006 but you can use any version of Delphi you wish.
Posted to KB Topic: Language Basics
10 years ago, and updated 10 years ago

Article
Nothing New Since Your Last Visit
9856
Hits
Icon Legend:
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).
-
   Contact Us!
 
Have a question? Need our services? Contact us now.
--Mike Prestwood

Call: 916-726-5675

email: info@prestwood.com


Go ahead!   Use Us! Call: 916-726-5675 


©1995-2018 Prestwood IT Solutions.   [Security & Privacy]