VarType.SubItem



SubItem(lIndex As Long) As ComplexItem

Parameters

lIndex As Long
A long variable which defines the position of the structure element (counting starts at 0).
ED
avaliable
RT
not used

Remarks

This method returns a sub item of a structure datatype.

Sample:


Sub SubItem()

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

'Fill the objects
Set zVarTypes = MyWorkspace.ActiveDocument.VarTypes
'Read the own created structure datatype "struct"
Set zVarType = zVarTypes.Item("struct")
'Read the first item of this structure datatype
Set zComplexItem = zVarType.SubItem(0)
'Move the first item one position downwards
zComplexItem.MoveItemDown

End Sub

See Also

VarType, ComplexItem