Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When to use parenthases after commands?
Message
 
 
À
15/08/2006 16:21:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01145740
Message ID:
01145756
Vues:
19
>The general guideline is to use parenthesis when calling methods or functions - even if no parameters are passed. Methods that return values and are used in expressions must end in open and closed parenthesis according to the VFP9 help file. Lookup passing parameters to methods in help.
>
>Just for good reading (my favorite is Craig Berntson's site):
>
>http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnarfoxgen/html/msdn_vfp_objm.asp
>http://www.craigberntson.com/Articles/kb015.htm
>http://fox.wikis.com/wc.dll?Wiki~SampleCodingStandardsStatement

Events getFocus
Methods writeExpression
Objects oEmployee
Properties allowRowSizing
Procedures getNextId

Note: The initial character should always be in lowercase and if the name consists of more than one word, the initial-capital words are concatenated

Interesting... I always use upper case for the first letter in methods such as SetFocus, GetFocus, etc.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform