|
-
Dec 3rd, 2005, 04:11 PM
#1
Thread Starter
Fanatic Member
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
-
Dec 3rd, 2005, 04:22 PM
#2
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)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|