Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Safety On
Message
 
 
To
29/03/2006 09:53:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01108731
Message ID:
01108805
Views:
14
>>I think you missed my point, which you can find in the original link I referred you to in the table.
>>
>>m.Var = m.Var1 + m.Var2
>>
>>In this expression the first m. is not needed, e.g.
>>
>>Var = m.Var1 + m.Var2 is better.
>>
>
>Naomi,
>
>You're right that the first m.Var doesn't need the m prefix, but I don't think it does any harm. And if you always prefix your variables with m you don't have to think about where its needed and where its not.
>
>So, I don't think one way is better - just a difference in style.
>
>Regards,

Basically you're right. However, the rules are quite simple and I know them, so I use m. only when it's needed. At wiki we have a table that lists all possible cases and the rules.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform