Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Optimization on one line
Message
De
13/07/2001 08:56:35
 
 
À
13/07/2001 07:46:00
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00530057
Message ID:
00530174
Vues:
14
>>>>In my quest of optimizing my code, how about this one:
>>>>
>>>>
>>>>lcField=FIELD(lnCompteur)
>>>>IF &lcField<>OLDVAL(FIELD(lnCompteur))
>>>>
>>>
>>>So. . .
>>>IF FIELD(lnCompteur) <> OLDVAL(FIELD(lnCompteur))
>>>. . . doesn't work?
>>
>>FIELD(lnCompteur) returns the name of the field not the value.
>
>If Field(lnCompteur) returns the name, then eval(Field(lnCompteur)) should return the value, right?

As answered in the other reply, yes, that does the trick.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform