Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New GOTO trick?
Message
 
To
16/03/2002 01:27:04
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00631774
Message ID:
00633706
Views:
19
Hi Dragan,

>Actually, you have to check for recno()=0 on empty tables

Are you sure? So far, that situation has always returned 1 for me.

>but that's all - no error.

Not quite. LOCATE RECORD accepts any value that RECNO() returns on the current table. If you pass a record number that doesn't exist either as a regular record or as a phantom record, it still errors. However, almost everytime I have to go to a certain record number, it is because I want to restore the record position that the cursor had when FoxPro entered a procedure or method. In this case, I can ensure that the record number is still valid providing that I haven't requeried the cursor. What I can't ensure is that I'm not on EOF.

Christof
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform