Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The m. variable thing
Message
From
19/11/2004 02:55:03
Walter Meester
HoogkarspelNetherlands
 
 
To
18/11/2004 14:56:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00962544
Message ID:
00962899
Views:
10
Hi Fabio,

>
>? varCash
>
Whether or not to use m. is not a rule but a personal preference.
I've got other rules to make it clear whether it is a field or variable:

Variable:
Prefixed with a type character (eg: cString, nCount, lUsed, dDate)

Field:
Prefixed with three characters identifying the table (eg: prs_pk, Prs_firstname, prs_lastname)

IOW, In my programs there is no question whether we talk about a field or variable.

>
>correctness and formal precision
>
I've got trouble with this as there are quite a few arbitrary rules when to use or not to use m. Those who apply m. themselves have different rules where and when to apply them as wel. Some say it is not neccesary at a variable assignment while other say you must be consistent and apply them where you can. It does not make sense to me. I just don't use them unless neccesary for whatever reason.

Walter,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform