General information
Category:
Coding, syntax & commands
>Terry
>
>Thanks for the help. I got it to work using the two conditionals: if not eof() and if eof().
>
If you don't do skip 1 or any other code that sends you EOF() anywhere else in the form, and I presume that you don't, all you need is:
SKIP 1 in Thisform.cpAlias
IF EOF(Thisform.cpAlias)
GO BOTTOM
* Other code for last record
ENDIF
You dont need to check for EOF first, because you will never be EOF outside of this code, and as soon as you get EOF in this code, you do GO BOTTOM and get out of it.
I know thats taking code tweaking to an extreme, but its one less IF condition to check for. Long ago, I used that code with no problems in all my FoxPro 2.6 DOS edit forms.
Carlos
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only