Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is m. prefix?
Message
De
22/02/2007 23:13:17
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
22/02/2007 23:04:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01198197
Message ID:
01198200
Vues:
9
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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform