Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange SEEK
Message
De
14/03/2009 14:11:54
 
 
À
14/03/2009 14:03:06
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:
01388082
Vues:
61
Seek() will both do the searching and return a logical value indicating success or not. As Martina wrote, Seek and Seek() have alwas behaved like this. If it's a problem, you must code around it. It has never been a problem in the close to twenty years I have used Fox. But nowadays I rarely use Seek at all, I use SQL syntax instead.

>You'll be surprised, but THERE IS NO any difference between SEEK and SEEK(). Though, I'm very proud that you
>are using Seek(). So, if you like Seek() more :
>
>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,'zzz','zzzi')
>? SEEK('2 anything else','zzz','zzzi')
>? SEEK('2.0','zzz','zzzi')
>USE IN zzz
>RETURN
>
>Is it better ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform