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

October 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 Sep 2013 Issue - Delphi Edition

Subscribe!

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.
portal.prestwood.com
  September 2013 - Delphi Edition (762 of 4,803 subscribers receive this group's content.) Year 15 Issue 9  
Your full service technology partner!


Expert guidance from working professionals!
IT Water-Cooler for Power-Users topic:
How To Configure Auto Logon In Windows 7
by Eric Prestwood

Configure your computer to auto log on to a user (even an admin)


Role-Based Tech Talk topic:
Crash, Bomb, Hang, and Deadlock
by Scott Wehrly
This article explores and defines the following terms: crash, bomb, hang, deadlock, exception, fatal error, and blue screen of death.

American I.T. workforce topic:
Sharpening your skills - A short story
by Ramesh R
Here is a short story about a woodcutter and his job. From this job, we have lot of learnings that implies to our career and sharpening our skills. Such examples in life are very important for shaping our career. Enjoy the short story.





 Delphi Group Top 
Visit Group | My Group Settings
OOP topic (classic post):
Delphi Constructors (constructor)
by Mike Prestwood

In Delphi, use the constructor keyword to signify which method or methods are constructors for a class. It is traditional but not required to use a procedure called Create.

In addition to having multiple named constructors, you can overload constructors.


Delphi for Win32 topic (classic post):
Displaying graphic images in DBGrid components
by Joshua Delahunty

An example of work I did to display a graphic (+ text) in a single column of a DBGrid based on two tables in a Delphi 2006 Application (not limited to later versions of Delphi)


 Monthly Delphi Lesson
OOP Topic:
Code Snippet of the Month

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.

TCyborg = class(System.Object)

private
//Don't use accept when you really want private friendly members.
strict private
//Use as your default private members.
  FName: String;

protected
//Don't use accept when you really want protected friendly members.
strict protected

//Use as your default protected members.
public
  


published
  //RTTI Info


end;
Language Basics Topic:
Definition of the Month: Delphi Module
A unit. A unit is defined in its own source file (a .PAS file) that contains types (including classes), constants, variables, and routines (functions and procedures). Each unit begins with unit UnitName; where UnitName must match the filename (minus the .PAS extension). The .PAS unit files are compiled into Delphi Compiled Units with a .DCU extension. A Delphi program is constructed from units. Specifically, the .DCU files are linked into your application. The Delphi compiler is very fast because it only recompiles units that have changed. You can force Delphi to recompile all units with a build all.
Education (Audio/Video) Topic:
Resource Link of the Month: Video & Audio: CDN Delphi TV

Lots here! {#geek} Delphi TV is part of CodeGear's developer network. Contains both audios and videos.

OOP Topic:
Question: What is the difference between private and strict private?

Answer:

Private visibility means members are invisible outside of the unit. In OO terms, this is how Object Pascal implements friendly classes (visibility to the private members of another class). To implement true private members in Delphi 1-7, put each class in a separate unit (most developers didn't bother).

Strict Private visibility means that private members within a class are visible ONLY within the class declared. In OO terms, this is true private visibility.

Language Basics Topic:
Tip of the Month

Format the IF/Endif for easy reading. I have found this to be easy to read and follow:

if (         (something = somethingelse)
      and (x = y)
      and (z = a)
   ) then
begin
..
end;

To indent the structure and line up the parenthesis makes it, I feel, much easier to read.



Sales Website: www.prestwood.com Or visit our legacy sales site: 
legacy.prestwood.com


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