Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why does record pointer past EOF()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00064257
Message ID:
00064277
Vues:
39
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform