Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using eof()
Message
De
06/12/2005 21:55:24
 
 
À
06/12/2005 10:12:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01075287
Message ID:
01075563
Vues:
15
>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
Fil
Voir

Click here to load this message in the networking platform