Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange SEEK
Message
De
14/03/2009 13:53:19
 
 
À
14/03/2009 13:43:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01388076
Message ID:
01388077
Vues:
61
I NEVER use the Seek command except from the command window. I suggest you use the seek() function instead, it's better and easier to use.

>Why does it work ?
>
>CREATE CURSOR zzz (dd n(5))
>FOR i=1 TO 10
> INSERT INTO zzz (dd) VALUES (i)
>NEXT
>INDEX on dd TO zzzi
>SEEK 2
>? FOUND() && .t.
>SEEK "2 anything else"
>? FOUND() && .t.
>SEEK "2.0"
>? FOUND() && .t.
>USE IN zzz
>RETURN
>
>Search is successful in all cases. Though index is created on numeric field, search is done with character expression.
>It MUST show a message about datatype mismatch. If not, it's terrible to change/define data types of searched
>field or searched expression "on-the-fly".
>SET ANSI, SET EXACT doesn't matter.
>VFP9+SP2.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform