VarType.CanDeleteType



CanDeleteType() As Boolean
ED
avaliable
RT
not used

Remarks

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

Sample:


Sub CanDeleteType()

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
'Read the INT datatype from the list
Set zVarType = zVarTypes.Item("INT")
'Check if the selected datatype can be deleted
Debug.Print "Can delete type = " & zVarType.CanDeleteType

End Sub

See Also

VarType