Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optimization on one line
Message
From
12/07/2001 22:05:04
 
 
To
12/07/2001 21:58:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00530057
Message ID:
00530066
Views:
19
>>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.
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform