Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PROBLEM: SET EXACT changes seeking result ?
Message
From
08/09/2003 09:08:57
 
 
To
08/09/2003 08:40:10
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00827017
Message ID:
00827027
Views:
18
Ignore my previous note. My fingers got ahead of my brain. As far as I can tell, you are correct.

I'm guessing it's a mistake in the help for SEEK.

Alan

>Hi,
>
>On VFP help, on SEKK, SEEK(),INDEXSEEK(), i found this:
>
>... The match must be exact unless SET EXACT is set to OFF.
>
>
>but i test and not found any difference with ON/OFF setting.
>
>
>CLEAR
>CREATE CURSOR myCursor (fChar c(10))
>INDEX on fChar TAG TAG1
>INSERT INTO myCursor VALUES ('ABCD')
>INSERT INTO myCursor VALUES ('ABC')
>INSERT INTO myCursor VALUES ('AB')
>INSERT INTO myCursor VALUES ('A')
>SET EXACT ON
>SEEK 'A'
>? RECNO(),fChar
>SET EXACT OFF
>* with OFF, if Help is correct i aspected to found recno()=1
>SEEK 'A'
>? RECNO(),fChar
>
>
>SEEK,SEEK(),INDEXSEEK(),KEYMATCH() found first PADR blanked key.
>
>SET EXACT ON/OFF it does not have infuence.
>
>The same result is obtained in VFP6/7
>
>Fabio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform