
! script name: delete.d/deletetype
! topic: delete single type

!A
!A NAME:
!A
!A 	Delete Type
!A
!A DESCRIPTION:
!A
!A 	This script allows the deletion of a single type.
!A
!B INSTRUCTIONS:
!B
!B 	PICK TYPE TO BE DELETED: Pick an element of the type to be deleted.
!B

stat=ChangeLabelStr("ScriptNameStatus","Function: delete type ")

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


DeActivateUndo
Ploop:!
E1=PickTypeEnt("PICK TYPE TO BE DELETED")
IF (ExitScript(Destination$)) THEN Leave

Stat=DeleteEntity(E1)

GOTO Ploop

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