
! script name: vplot.d/updateplot
! var_topic: update plot

!A
!A NAME:
!A
!A 	Update Plot          VARIATIONAL
!A
!A DESCRIPTION:
!A
!A	GraphicsFlush is used to refresh the screen in the middle of VDM.
!A

stat=ChangeLabelStr("ScriptNameStatus","Function: update plot ")

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

Var_object=CheckVarObject
IF ExitScript(Destination$) THEN Leave

RecordFunctionOn
Stat=RecordDescr("PLOT: Update Plot")
Stat= PrintToVarRecord("GraphicsFlush")
RecordFunctionOff
Curr_record= CurrentVarRecord
CloseVarRecord

ActivateUndo
Stat= AdvanceUndoNumber("update plot")
Stat= AddItemToUndo(WsUBCreateMode,Curr_record)
Leave:!
IF NOT LEN(Destination$) THEN
	LOAD "typecontrol"
ELSE
	LOAD Destination$
END IF
END
