-
Common Naming Schemes
Hi,
Its been many many many (very long time) years since I coded in Foxpro and dbase 3.
So, I have a question on coding today regarding naming schemes.
Can anyone point me to, or tell me, what the standard naming conventions are for file names today ?
IE:
frmMYFORM (frm indicates a form)
cmdMYCOMMAND (cmd indicates a command button)
mnuMYMENU (mnu indicates a menu)
It seems that there has evolved a standard way to files in an app. Is there a listing somewhere ?
Thanks
shickey
-
See if the following helps:
Naming Guidelines
Paul
~~~~
Microsoft MVP (Visual Basic)
-
I'm confused: Are you asking about naming conventions for FoxPro/xBase, or for .NET languages? For future reference, FoxPro/xBase questions should be posted to the Database forum. Thank you!
Phil Weber
http://www.philweber.com
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
-
Hi
Well, the FP & dBase days are over. Looking for VB.NET naming.
pclement pointed out a location for some general Microsoft guidelines (interesting), but it does not list out some standard naming schemes that I see used, such as "frm" as a pre to designate a form, "cmd" prefix to designate a command button, etc.
-
The Hungarian Notation that represents these objects hasn't really changed nor has it been enhanced to support new classes.
Some developers still use this naming convention and some don't, however, it's more or less been outdated and abandoned by Microsoft for .NET development.
http://support.microsoft.com/default...b;en-us;110264
Paul
~~~~
Microsoft MVP (Visual Basic)
-
Typically in VFP the standard is just picked up from reading code. Each shop is different.
cbo - combobox
lst - listbox
txt - textbox
btn - button
grd - grid
chk - checkbox
pnl - panel
frm - form
mnu - menu
lbl - label
edt - editbox
spn - spinner
cnt - container
pgf - page frame
opg - option group
cmg - command group
Most shops practice Hungarian notation in their code:
aVariableName - array
oVariableName - object
nVariableName - numeric
cVariableName- char/string
lVariableName - logical
dVariableName - date
-
Our shop is moving our 10 year old app from VFP to C#. Old naming conventions ( Hungarian ) are being dropped for Microsoft standards ( Paschal/camel ).
-
Phil Weber
http://www.philweber.com
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
-
Very Cool....
Thanks Guys
shickey
-
Here’s a link to an excellent free document, that covers naming conventions plus a whole lot more!
http://www.iridiumsoftsol.com/conten...gy/whitepapers
I found it very helpful when starting out.
Talyrond
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks