Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parametrized update command
Message
De
03/04/2019 15:00:28
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01667828
Message ID:
01667905
Vues:
61
>> The reason I never use a prefix m. before a variable is because I am always careful in naming my variables different from fields or expression.

Just a head's up that m. on the right side of an = avoids VFP checking for a field of that name in the selected table/cursor. This can cause visible performance differences in SCANs or loops where the selected cursor has lots of fields. Therefore I try to use m. on the right side of an =.

Whereas on the left side of an =, m. is not necessary (as it has to be a variable- a field would need REPLACE or UPDATE) and also slightly decreases performance.
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform