Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PROBLEM: SET EXACT changes seeking result ?
Message
De
08/09/2003 09:08:57
 
 
À
08/09/2003 08:40:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00827017
Message ID:
00827027
Vues:
17
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform