Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
M. prefix
Message
 
À
27/03/2003 10:48:44
Victor Verheij
International Film Festival Rotterdam
Rotterdam, Pays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00770764
Message ID:
00770768
Vues:
13
m. is used (or used to be used) to tell VFP that the variable that you are referencing is a memory variable, not an alias.

I don't use m. Unless I really need to.

Below is an example of when m. is required.
e=createobject("custom")
? e.Name    
? m.e.Name 
The second line will crash since VFP will think that you are refering to field "name" in alias "e" as opossed to property "name" in variable "e" The third line addresses this by prefixing the line with m.




>What does the m. prefix mean
>Am i correct in assuming that it is a prefix you put in front of a variable.
>
>When are you supposed to use m.
>
>Tia, victor.
Hector Correa
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform