Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Coding Standards
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00115272
Message ID:
00115533
Vues:
13
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform