Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh Table After Delete
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00063847
Message ID:
00063852
Vues:
54
>>To programmatically refresh a table after a Delete, I'm using
>>
>>SKIP 1
>>SKIP -1
>>
>>to get the proper next record, or previous if at Bottom. Someone noticed that the Wizard does a more complex refresh, with eof() & bof() checks. But my method seems to work...does anyone know of a problem with this or another simple way to do the table refresh?
>
>Hi Bruce,
>
>Don't know if it matters, but I have generally done something like this:
>
>
>DELETE
>SKIP 1
>IF EOF()
>    GO BOTTOM
>    IF EOF()
>        WITH THISFORM.cntControls.cmgCommand
>            ... Disable appropriate buttons ...
>        ENDWITH
>    ENDIF
>ENDIF
>
>
That's fine too, that's the way a coworker is doing it...though my method has less code lines (excluding your empty table check). That's not to say that mine is more efficient, of course...I'm just wondering if there's some compelling reason not to use my method...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform