
! script name: vcontrol.d/restartvdm
! var_topic: restart vdm after error

!A
!A NAME:
!A
!A 	Restart VDM
!A
!A DESCRIPTION:
!A
!A 	This script allows starting up after an error in a VDM script. 
!A	The system is still recording functions. Thus, the system needs to
!A	be told to stop recording functions. Also, the last record is deleted
!A	automatically since it is most likely corrupt
!A
!B INSTRUCTIONS:
!B
!B 	There are no questions. This script is an execute only script.
!B

DeActivateUndo
RecordFunctionOff
CloseVarRecord
Stat=ChangeLabelStr("ScriptNameStatus","Function: restart vdm")
Var_object=CurrentVarObject
IF NOT ValidGeometry(Var_object) THEN Leave
DelLastVarRecord

Leave:!
LOAD "typecontrol"
END
