Hi Jay
This modification should do the trick:
cAlias = ALIAS()
nRecNo = RECNO()
Do Something
SELE (cAlias)
IF nRecNO>0
GOTO nRecNo
ENDIF
>I use the following code in numerous methods to keep record pointers where they belong
>
>
>cAlias = ALIAS()
>
>nRecNo = RECNO()
>
>
>Do Something
>
>
>SELE (cAlias)
>
>GOTO nRecNo
>
>
>But if the ALIAS was empty then the GOTO will give a record out of range error. Often the Do Something code is using tables/cursors, etc and the goal is to leave open data the same when exiting a method as it was on entering. Any thoughts? Thanks!
>
>Regards, Renoir