VarType.DeleteSubItem



DeleteSubItem(vNameOrIndex As Variant) As Boolean

Parameters

vNameOrIndex As Variant
The structure item can be selected via a string (name) or via a index number.
ED
avaliable
RT
not used

Remarks

With this method you can delete an item from a structure datatype.

Sample:


Sub DeleteSubItem()

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 own created structure datatype "structure" from the list
Set zVarType = zVarTypes.Item("structure")
'Delete an item called "element_1" from the structure datatype
Debug.Print "Sub item has been deleted = " & zVarType.DeleteSubItem("element_1")
End Sub

See Also

VarType