Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optimization on one line
Message
From
13/07/2001 07:46:00
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
12/07/2001 22:05:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00530057
Message ID:
00530155
Views:
16
>>>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?

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform