Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: Combo can not be set to ReadOnly
Message
De
07/06/2003 13:56:12
 
 
À
06/06/2003 14:43:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00796794
Message ID:
00797663
Vues:
21
Hi Marcia,

another tips is:

Search for a first occurrence of a value, as MyValue, is very frequently.

Standard VFP command is:

SELECT MyTable
LOCATE FOR MyField=MyValue
IF FOUND()
...
ENDIF

This need set workarea, and Rushmore optimization is not very good,
besides, if MyValue is a variable/field, FOR clause read MyValue for each comparison.

=LOOKUP(MyTable.MyField,MyValue,MyTable.MyField)
IF !EOF('MyTable')
...
ENDIF

is faster: double faster if no index exist, exponential faster if index exist.

Attention is need if MyTable have a index active.

Fabio
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform