Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Naming conventions for custom methods?
Message
From
16/11/2008 23:24:22
 
 
To
16/11/2008 22:55:41
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01362229
Message ID:
01362233
Views:
15
A method name should describe what a method does and be a verb/noun combination, for example, GetCustomerByName, CalculateTax, etc.

>I follow the common practice of use type prefixes when naming custom Properties in classes and forms like this:
>
>
>lAddMode
>cName
>oTextBox
>nSomeValue
>etc.
>
>
>Now then, is it also common to use those same prefixes when naming custom Methods that return known types.
>
>for instance:
>
>
>lUsesVCR()
> return Vartype(this.oPageFrame)='O'
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform