Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET FILTER
Message
 
 
To
21/12/2000 11:41:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00455929
Message ID:
00455940
Views:
42
>I have tried using 'Skip' to move the record pointer but I get an "End of File" error. I assumed this was because there are no records due to the previous 'SET FILTER TO ...' command. Is this assumption correct?
>
>Doesn't 'LOCATE' just move the record pointer to the first occurance of a specific item? I wan't to be able to view all records that contain that specific item.
>
>Thanks for your help,
>Russell

When you issue a SET FILTER TO < some value > and there are no values, you are at EOF. When you issue a SET FILTER TO, you are still at EOF and trying to skip again throws an error.

Issuing LOCATE without any other information is like issuing a LOCATE FOR .T.. The result is you go to the first record in the table or in your case, the first record adhering to the filter. The point being issuing a LOCATE always "moves" the record pointer so any new filter will take effect.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform