Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is m. prefix?
Message
From
22/02/2007 23:13:17
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
22/02/2007 23:04:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01198197
Message ID:
01198200
Views:
10
If you have a variable and a field (in the current work area) which both have the same name, the field takes precedence.

"m." forces VFP to use the variable, even if there is a field. Even if there is no such field, it is also supposed to be somewhat faster to use "m.", since VFP doesn't need to check if there is a field.

For comparison:

client.clientcode refers to field "clientcode" in table "client" (more accurately, in the alias called "client").

a.clientcode refers to the field in the first work area. This works for the first 10 letters of the alphabet, but this syntax is not recommended.

>Hi,
>
>Excuse my ignorance, but I've been constantly encountering code in UT with a variable preceded with an ".m", like below:
>
>
>ldFrom = MIN(m.tdFrom,m.tdTo)
>
>
>What is ".m" ?
>
>Thanks in advance.
>
>Steve
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform