Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When to use parenthases after commands?
Message
 
À
15/08/2006 17:10:44
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01145740
Message ID:
01145779
Vues:
17
>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform