VarTypes.CreateComplexType



CreateComplexType(bstrTypeName As String) As VarType

Parameters

bstrTypeName As String
A string which defines the name of the structure datatype.
ED
avaliable
RT
not used

Remarks

With this method a structure datatype can be created.

Sample:


Sub CreateComplexType()

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

'Create a structure datatype called "Structure_1"
Set zVarType = zVarTypes.CreateComplexType("Structure_1")

End Sub

See Also

VarTypes, VarType