Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When to use parenthases after commands?
Message
From
15/08/2006 16:33:28
 
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:
01145758
Views:
19
My personal preference is to do the same or to type the entire method name in upper case (that was done as a standard at an old job so it became a habit). Now I try to follow whatever the existing code has (since I am the newest member of a dev team).


>>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.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform