* Save the current work area LOCAL lcAlias lcAlias = ALIAS() *Select the work area to be affected SELECT Whatever * Do whatever the plan is Do Something * Now restore the work area IF NOT EMPTY(lcAlias) SELECT (lcAlias) ELSE SELECT 0 ENDIF RETURNThis allows me to call this code from antwhere without being concerned if the work area is being changed.