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

July 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
9 years ago
(1 Comments , last by Austin.M )

Article
Nothing New Since Your Last Visit
188345
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
9 years ago, and updated 9 years ago
(4 Comments , last by Miesha.t )

Code

Article
Nothing New Since Your Last Visit  
29590
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
9 years ago, and updated 8 years ago

Code

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

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

KB Post
Nothing New Since Your Last Visit
25050
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
9 years ago, and updated 8 years ago
(2 Comments , last by Ronald.T )

Code

KB Post
Nothing New Since Your Last Visit
24126
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
9 years ago, and updated 9 years ago
(5 Comments , last by mprestwood )

Code
Nothing New Since Your Last Visit
22022
Hits

Kim Berry
8. Mainframe Connectivity via SNA Server This article by Kim Berry was first published in the January 2002 Prestwood eMagazine.
Posted to KB Topic: Delphi for Win32
15 years ago, and updated 9 years ago

Article
Nothing New Since Your Last Visit
21939
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
9 years ago, and updated 8 years ago

Code

KB Post
Nothing New Since Your Last Visit  
21830
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
9 years ago, and updated 8 years ago
(5 Comments , last by Taylor.F )

Code
Nothing New Since Your Last Visit
20686
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
9 years ago

Article
Nothing New Since Your Last Visit  
13509
Hits

Wes Peterson
2. 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
8 years ago

Article
Nothing New Since Your Last Visit
19520
Hits

Wes Peterson
3. 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
9 years ago, and updated 7 years ago
(4 Comments , last by Wes )

Article
Nothing New Since Your Last Visit
17041
Hits

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

Article
Nothing New Since Your Last Visit
14547
Hits

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

Code

KB Post
Nothing New Since Your Last Visit  
21830
Hits

Mike Prestwood
6. Delphi Overloading (overload)

Object Pascal

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

Code

Article
Nothing New Since Your Last Visit
16406
Hits

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

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

KB Post
Nothing New Since Your Last Visit
13584
Hits

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

FAQ
Nothing New Since Your Last Visit
8461
Hits

Mike Prestwood
10. Delphi Interfaces (IInterface, TInterfacedObject)

You specify an interface in the type block just like you do for a class but you use the interface keywoard instead of the class keyword and in the interfaces section only. Since interfaces, by definition, do not have any implementation details, all you do is specifiy it in the type block.

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

Code

Article
Nothing New Since Your Last Visit
18119
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-2017 Prestwood IT Solutions.   [Security & Privacy]