VarTypes.DeleteType



DeleteType(vNameOrIndex As Variant) As Boolean

Parameters

vNameOrIndex As Variant
The datatype can be selected via position (number) or via its name (string).
ED
avaliable
RT
not used

Remarks

With this method an own created datatype can be deleted.

Sample:


Sub DeleteType()

Dim zVarTypes As VarTypes   'Object from type VarTypes
Dim zVarType As VarType 'Child object from type VarTypes

'Fill the objects
Set zVarTypes = MyWorkspace.ActiveDocument.VarTypes

'Delete an own created datatype called "own_simple"
zVarTypes.DeleteType ("own_simple")

End Sub

See Also

VarTypes