|
ED
|
avaliable
|
RT
|
not used
|
This method returns a sub item of a structure datatype.
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