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

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

Prestwood eMagazine

November 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
12 years ago
(5 Comments , last by Lindsay.R )

Article
Nothing New Since Your Last Visit
227973
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
12 years ago, and updated 12 years ago
(19 Comments , last by Alan.P3 )

Code

Article
Nothing New Since Your Last Visit  
46383
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
12 years ago, and updated 11 years ago

Code

Article
Nothing New Since Your Last Visit  
36698
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
17 years ago, and updated 10 years ago
(4 Comments , last by Wes )

KB Post
Nothing New Since Your Last Visit
35439
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
17 years ago, and updated 17 years ago
(2 Comments , last by Anonymous )

KB Post
Nothing New Since Your Last Visit
31048
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
12 years ago, and updated 11 years ago
(3 Comments , last by Uwais.Q )

Code

KB Post
Nothing New Since Your Last Visit
29215
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
12 years ago, and updated 12 years ago
(11 Comments , last by peter.j2 )

Code
Nothing New Since Your Last Visit
28463
Hits

Mike Prestwood
8. 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
11 years ago, and updated 10 years ago
(1 Comments , last by Leo.M )

Code

Article
Nothing New Since Your Last Visit  
28112
Hits

Mike Prestwood
9. 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
12 years ago, and updated 11 years ago

Code

KB Post
Nothing New Since Your Last Visit  
27949
Hits

Mike Prestwood
10. 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
12 years ago, and updated 11 years ago
(5 Comments , last by mprestwood )

Code
Nothing New Since Your Last Visit
27931
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
12 years ago
(3 Comments , last by Liam.L )

Article
Nothing New Since Your Last Visit  
21243
Hits

Mike Prestwood
2. Camel versus Pascal Casing What is the difference between Camel Casing and Pascal Casing?
Posted to KB Topic: Language Basics
12 years ago, and updated 12 years ago
(49 Comments , last by Duong.Q )

FAQ
Nothing New Since Your Last Visit
22415
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
11 years ago
(3 Comments , last by Kevin.F2 )

Article
Nothing New Since Your Last Visit
26373
Hits

Wes Peterson
4. 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
12 years ago, and updated 10 years ago
(10 Comments , last by Mcdonald.L )

Article
Nothing New Since Your Last Visit
23816
Hits

Mike Prestwood
5. 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
12 years ago, and updated 12 years ago
(19 Comments , last by Alan.P3 )

Code

Article
Nothing New Since Your Last Visit  
46383
Hits

Mike Prestwood
6. 20 Minute Delphi Primer: Displaying Things

This primer is intended for those just getting started in Delphi and focuses on displaying things.

Posted to KB Topic: Language Basics
12 years ago, and updated 11 years ago
(11 Comments , last by sisep29270.s )

KB Post
Nothing New Since Your Last Visit
8331
Hits

Wes Peterson
7. 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
12 years ago, and updated 9 years ago
(1 Comments , last by Jack.P )

Article
Nothing New Since Your Last Visit
21500
Hits

Mike Prestwood
8. BDE SQL Links Not Maintained

I have an application in Delphi 1-7, using BDE. Is there a way that I can upgrade the BDE so the can work with MSSQL 2005 or 2008. They work fine if MSSQL2000 is is used. Am I on a dead end or there is still hope?

Posted to KB Topic: BDE
10 years ago, and updated 10 years ago
(4 Comments , last by waseemali.a )

FAQ
Nothing New Since Your Last Visit
12248
Hits

Mike Prestwood
9. 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
12 years ago, and updated 12 years ago
(2 Comments , last by Megan.S )

Article
Nothing New Since Your Last Visit
11989
Hits

Mike Prestwood
10. Program or unit recursively uses itself

You cannot create a Delphi unit with the same name as is already in use. For example, do not create a buttons.pas unit for your application because the VCL already has a Buttons.pas unit. The solution is to rename your unit.

Posted to KB Topic: Delphi for Win32
11 years ago
(6 Comments , last by Amy.G )

Error
Nothing New Since Your Last Visit
21146
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-2020 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech