Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why does record pointer past EOF()
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00064257
Message ID:
00064277
Views:
44
>>Why is the value of zrecord 23?
>
>I've had trouble with this too lately, refreshing after a delete doesn't seem to work as one would expect. What I've done is:
>
>
>delete

Assuming that you are not already on eof when DELETE is executed, you cannot be on eof after DELETE, so the following test is useless. (DELETE doesn't move the record pointer).

>if eof()
>  go bottom
>endif
>skip 1
>skip -1
>
>This gives a full table refresh, and sets the pointer at the correct record.

The way to go is:
DELETE
SKIP
IF EOF()
   SKIP -1
ENDIF
IF EOF()
   WAIT WIND "No records"
ENDIF
Vlad
Previous
Reply
Map
View

Click here to load this message in the networking platform