>>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.