Variable.CreateDynProperty



CreateDynProperty(bsPath As String) As Boolean

Parameters

bsPath As String
String for the dynamic property to be created.
ED
avaliable
RT
not used

Remarks

This method creates a dynamic property.

Sample:


Sub EdLimDynProp()

Dim zVariable As Variable 'Child object from type Variables

'Take the first variable from the variables list
Set zVariable = MyWorkspace.ActiveDocument.Variables.Item(0)

'Create a limit
zVariable.CreateDynProperty ("Limits")
'Set the limit text
zVariable.DynProperties("Limits[0].Text") = "Limit reached"
'Set the limit value
zVariable.DynProperties("Limits[0].LimitValue") = 10
'Set the value as maximum
zVariable.DynProperties("Limits[0].IsMax") = True

End Sub


See Also

Variable