Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement