
! script name: vcontrol.d/closeobject
! var_topic: close variational object

!A
!A NAME:
!A
!A 	Close Variational Object
!A
!A DESCRIPTION:
!A
!A 	This script allows an object to be closed and a contour created.
!A 	There are no questions asked.  The records included in the object
!A 	are made into a contour or contours.
!A
!# see also - htdocs/help.d/vdminfo.htm

Stat=ChangeLabelStr("ScriptNameStatus","Function: close variational object")

DIM Answer$[256]
DIM Name$[256]
DIM Destination$[256]
DEG

DeActivateUndo
DelCurrObjPaths
CurrentObjectPaths
CloseVarObject

DelEmptyObjects

Leave:!
Stat=SetInputFormat("n4","")
IF NOT LEN(Destination$) THEN
	LOAD "typecontrol"
ELSE
	LOAD Destination$
END IF
END
