Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to handle an invalid GO RECORD # ?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00236852
Message ID:
00237426
Views:
12
Hi Eric,

>If I do a GO RECORD var command, is there a way to control the case where the record is not there (instead of having the foxpro message record out of range) ?

Don't use it, but use LOCATE RECORD nRecno instead. It's just as fast, but will position the record pointer at EOF if you pass an invalid record number.

Christof
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform