
! script name: vplot.d/clearall
! var_topic: clear graphics

!A
!A NAME:
!A
!A 	Clear Graphics	  VARIATIONAL
!A
!A DESCRIPTION:
!A
!A 	This script allows a user to blank the graphics screen in VDM.
!A

stat=ChangeLabelStr("ScriptNameStatus","Function: variational clear graphics ")

DIM Destination$[256]
DIM Answer$[256]

Var_object=CheckVarObject
IF ExitScript(Destination$) THEN Leave

RecordFunctionOn
Stat=RecordDescr("PLOT: Plot On")
Stat= PrintToVarRecord("ClearAll")
RecordFunctionOff
Curr_record= CurrentVarRecord
CloseVarRecord

ActivateUndo
Stat= AdvanceUndoNumber("clear all")
Stat= AddItemToUndo(WsUBCreateMode,Curr_record)

Leave:!
IF NOT LEN(Destination$) THEN
	LOAD "typecontrol"
ELSE
	LOAD Destination$
END IF
END
