Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Seek 75 vs Seek '75'
Message
De
01/03/2000 13:55:47
Walter Meester
HoogkarspelPays-Bas
 
 
À
01/03/2000 13:34:57
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvanie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00339960
Message ID:
00339978
Vues:
19
Michael,

>
create table AnyTable (Keyval N(5))
>index on keyval tag keyval
>for x = 1 to 100
>  insert into AnyTable (keyval) VALUES (x)
>next
>seek 75
>seek "75"
>
>Why doesn't this cause an error on the last line?

As far as I know this is an undocumented feature which has been in the product for at least FPW 2.6 . FoxPro 'sees' that the required index is numeric and converts the string to a numeric value.

Walter,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform