Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Coding Standards
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00115272
Message ID:
00115533
Views:
14
>o Command and Functions are always in CAPS.

Basically, the previous rule is the only one that I don't like.

I would add:
- Always use () for methods, func/procs and events.
- Always use [] for arrays.
- Declare all locally used variables as local/private at the begining of each func/proc/method. Don't declare variables in other places inside funcs/procs/methods (ie: inside loops, ifs, etc.)
- Use FOR ... ENDFOR not FOR ... NEXT ... (this is really a matter of taste, but ENDFOR is more in the FoxPro style)
- Don't use "&&" comments.
- Don't write code lines longer than 50-60 chars.
- Parenthesize each condition in composed logical expressions.
- Don't use square brackets for character strings unless you need it.

And for index names: if the index expression is a single field, than the name of the index is the same as the name of the field.

Vlad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform