Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
M. prefix
Message
 
To
27/03/2003 10:48:44
Victor Verheij
International Film Festival Rotterdam
Rotterdam, Netherlands
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00770764
Message ID:
00770768
Views:
14
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
Previous
Reply
Map
View

Click here to load this message in the networking platform