Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Naming conventions for custom methods?
Message
From
17/11/2008 07:25:36
 
 
To
16/11/2008 22:55:41
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01362229
Message ID:
01362264
Views:
22
>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'
>
I've seen it different at the places I've worked. Mostly I've seen something close for form properties:

pcformmode = property of a form, character, what the variable is for

for form methods:

populatenamegrid = a method to populate the form's grid named 'namegrid'
disableall = a method to disable every control on the form

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
Reply
Map
View

Click here to load this message in the networking platform