Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When to use parenthases after commands?
Message
 
To
15/08/2006 17:10:44
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01145740
Message ID:
01145779
Views:
19
>>Hmmm.
>>I just want to know the reason of:
>>
>>Avoid use of STORE.
>>
>>Why?
>>
>>It is faster than lcMyVar = []
>>
>>UPDATE: But I must ask Craig, not you :-)
>
>I find the following:
>
>x = 1
>
>
>less confusing than:
>
>store 1 to x
>
>
>But STORE can be a useful shortcut to store the same value to several properties, for example:
>
>
>store gnUserLevel <= 3 to;
>  ThisForm.Control1.Enabled,;
>  ThisForm.Control2.Enabled,;
>  ThisForm.Control3.Enabled
>
Yes, I also use STORE when I must set a value to several variables/properties and use x = 1 when I need to do that just for one variable. I read a Calvin Hsia's BLOG where he describes that STORE is faster than just x = 1 :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform