PV-WAVE Foundation > Tutorial > Programming with PV-WAVE > Restoring “Lost” Variables
Restoring “Lost” Variables
When a procedure or function is interrupted, control of PV-WAVE may stop in the procedure or function instead of returning to the main program level. This transfer of control to the procedure or function level can make variables defined at the main program level temporarily unavailable. Use the RETALL command to return to the main program level.
Entering the command RETALL (Return All) returns PV-WAVE’s context to the main program level, causing the variables to “reappear”. Alternately, you can type the command RETURN whenever you wish to return PV-WAVE’s context to the next highest level (in the case of nested procedures).