[DUG] Component names

Conor Boyd lists at conor.org.uk
Thu Aug 25 14:43:17 NZST 2005


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.



More information about the Delphi mailing list