Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange SEEK
Message
From
14/03/2009 14:11:54
 
 
To
14/03/2009 14:03:06
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01388076
Message ID:
01388082
Views:
62
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 ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform