Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When to use parenthases after commands?
Message
 
 
To
15/08/2006 16:21:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01145740
Message ID:
01145756
Views:
21
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform