Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using eof()
Message
From
06/12/2005 21:55:24
 
 
To
06/12/2005 10:12:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01075287
Message ID:
01075563
Views:
14
>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
Map
View

Click here to load this message in the networking platform