Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hello m.World
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00362492
Message ID:
00362508
Views:
13
>They use m. prefixes all the time w/o SCATTER or referring to fields? Have you ever looked at any of their sample code?
>They would do something like this
>LOCAL lcMyLocalValue
>*...
>RETURN m.lcMyLocalValue
>
>It's weird

John,

In writing generic code it is not weird at all. The person writing RETURN m.lcMyLocalVariable has no idea what a developer may name a field in a table at some later date. They have no idea what tables or fields may exist at runtime. Fields take precendence over memory variables, so RETURN lcMyLocalVariable will return the value of a field if one exists with that name while RETURN m.lcMyLocalVariable will ALWAYS return the variable regardless of any fields that may exist.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform