VarTypes.CanDeleteType



CanDeleteType(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
avaliable

Remarks

This method returns true if a selected datatype can be deleted and false if it can't be deleted.

Sample:


Sub CanDeleteTypes()

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
'Try if this datatype can be deleted
Debug.Print "Can this type be deleted = " & zVarTypes.CanDeleteType("INT")

End Sub


See Also

VarTypes