-
Naming Conventions
I was just curious which type of naming conventions is most widely used, and most readable. I know this can be a personal preference but I was just curious how people keep local,modual,class variables identifiable.
I ask because I am looking for a change, I have been using "Polish" Notation but want to see what else is out there.
Thanks
-
Re: Naming Conventions
For variables I use..
strVarname - String
lngVarname - Long
intVarname - Int
dblVarname - Double
And about Global, Modular and Local:
Example with String: (no matter if its inside a Form, a Module or a Class)
lstrVarname - Local string variable
mstrVarname - Modular string variable
GstrVarname - Global string variable
Global Const string:
GCnstStrVarname
Forms, Modules and Classes: (about the Names to use)
FrmFormname (Forms)
ModModName (Modules)
ClsClassName (Classes)