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

-Collapse +Expand Delphi To/From
-Collapse +Expand Delphi Store

Prestwood eMagazine

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

   ► eMag   Print This    All Groups  
View Group Edition:
Full Edition Your Edition || Prev Next || Subscription Center

Prestwood IT Newsletter Nov 2013 Issue - Delphi Edition


Start subscribing now! It's free!

Each month on or after the 1st, and only once a month, we will send you content from up to 5 community groups. If you select this Delphi group, you'll receive the following content below mixed in with the other groups you elect to include.

Prestwood eMag
Our monthly opt-in coupons+newsletter.
  November 2013 - Delphi Edition (762 of 4,804 subscribers receive this group's content.) Year 15 Issue 11  
Your full service technology partner!

Expert guidance from working professionals!
Lighter Side topic:
Scrambled Text
by Mike Prestwood
Apparently if the first and last letters are correct, the rest don't matter.

 Delphi Group Top 
Visit Group | My Group Settings
Using Data topic (classic post):
Delphi Instance Counter
by Mike Prestwood
Implement static member data in Delphi with variables declared in the implementation section (unit scope). Increment and decrement variable in constructor and destructor. Then use a class function to surface the variable's value publicly.

Using Controls topic (classic post):
TDBGrid: Rerarranging Columns at Will
by Wes Peterson

Delphi's TDBGrid is an incredibly useful component; one you'd expect to find in any professional development tool.

One of it's handy behaviors is that users can click in column headers and drag to rearrange column ordering to their liking.

Unfortunately, TDBGrid doesn't offer the developer any really easy way to rearrange grid columns from code. This is inconvenient because you might offer the user a choice of various columns upon which they can search, and it would be nice to make their chosen column the leftmost - at least. Often it makes sense to rearrange other columns as well.

This little class allows you to do that.

It has no exposed methods, and only two properties, so it's incredibly easy to use.

Read on to learn how it works and to get the code.

 Monthly Delphi Lesson
OOP Topic:
Code Snippet of the Month

Delphi for Win32 supports abstract class members using the abstract keyword. You can even instantiate instances of a class that contains abstract members. Then you override each abstract member in a descendant class with Override. Delphi does not support setting an entire class as abstract. You can create an abstract class (a class with one or more abstract methods), but there is no way to tell the compiler to not allow the instantiation of the abstract class. Delphi does not support abstract member properties directly. To implement an abstract properity, make use of abstract methods. That is, you can read a GetPropertyX abstract function and write to a SetPropertyX abstract procedure. In effect, creating  an abstract property.

TCyborg = class(TObject)

  procedure Speak(pMessage: String); virtual; abstract;
  procedure Walk; virtual; abstract;
TSeries600 = class(TCyborg)

  procedure Speak(pMessage: String); override;
  procedure Walk; override;
Delphi for Win32 Topic:
Resource Link of the Month: Delphi for Win32 Roadmap

Official Delphi and C++Builder Roadmap from Codegear.

OOP Topic:
Question: What is the difference between Protected and Strict Protected visibility?


Protected visibility means members are invisible outside of the unit. In other words, protected members are visible to the class they are declared in as well as descendant classes and any class declared within the unit.

Strict Protected visibility means that protected members within a class are visible ONLY within the class declared and to descendant classes. In OO terms, this is true protected visibility.

Tool Basics Topic:
Tip of the Month

To insert a GUID into code using the Delphi Editor, use Control + Shift + G.



However, if you are using either the Visual Studio or Visual Basic key mapping emulation, use Control + Alt + G.

Sales Website: Or visit our legacy sales site:

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