Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting field presence in dbf
Message
From
31/07/2007 12:11:47
 
 
To
31/07/2007 07:55:49
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01244177
Message ID:
01244890
Views:
22
>>>I don't see why afields()+ascan() is too much work. It's just a single expression, provided the checked table is already open under some alias. Field() == m.field checking is still the best and simple.
>>
>>it is cruel and unusal punishment for your enslaved CPU. The performance is not even in the same ballpark.

>Sorry but I don't understand what you mean.
Cetin,

it is not too much work for the developer, but the performance of this construct may be worse by a factor exceeding 100 compared to field(). If such checks are "routinely" done a couple of hundred times in framework code you will get a time lag large enough to perceive in "human time frame". And the CPU has to work full time for a couple of ms.

regards

thomas
Previous
Reply
Map
View

Click here to load this message in the networking platform