[DUG] Component names

James Sugrue jamessugrue at xtra.co.nz
Thu Aug 25 14:52:42 NZST 2005


I always though P was for Pointer too as in PAnsiChar, PChar etc...

-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz] On
Behalf Of Conor Boyd
Sent: Thursday, 25 August 2005 14:43
To: 'NZ Borland Developers Group - Delphi List'
Subject: RE: [DUG] Component names

Is it?

Not wanting to start a standards argument, but for example AFAIK the Borland
standard for attributes of a class is F for field, e.g. FMyAttribute:
String.  I've never seen P for parameter used widely at all...

Cheers,

C.

-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz] On
Behalf Of Stacey Verner

Note: It is standard to prefix parameters with "P" (stands for
parameter) or "A" (stands for argument) so you should have PMyTable or
PTable.
Similarly Local variables are usually prefixed with "L". In the end it makes
it easy for figure out whene a variable comes from. "P" is a parameter. "L"
is a local variable and anything else is a property of your class.

_______________________________________________
Delphi mailing list
Delphi at ns3.123.co.nz
http://ns3.123.co.nz/mailman/listinfo/delphi

-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.15/81 - Release Date: 24/08/2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.15/81 - Release Date: 24/08/2005
 



More information about the Delphi mailing list