Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: Combo can not be set to ReadOnly
Message
From
07/06/2003 13:56:12
 
 
To
06/06/2003 14:43:19
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00796794
Message ID:
00797663
Views:
22
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
Previous
Reply
Map
View

Click here to load this message in the networking platform