Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting field presence in dbf
Message
De
31/07/2007 12:11:47
Thomas Ganss (En ligne)
Main Trend
Frankfurt, Allemagne
 
 
À
31/07/2007 07:55:49
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
Visual FoxPro
Divers
Thread ID:
01244177
Message ID:
01244890
Vues:
24
>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform