|
ED
|
avaliable
|
RT
|
not used
|
This method deletes selected limits of a variable.
Sub DeleteEDLimit() Dim zVariables As Variables 'Object from type Variables Dim zVariable As Variable 'Child object from type Variables Dim zDrivers As Drivers 'Object from type Drivers Dim zVarTypes As VarTypes 'Object from type VarTypes Dim i As Integer 'Fill the objects Set zVariables = MyWorkspace.ActiveDocument.Variables Set zDrivers = MyWorkspace.ActiveDocument.Drivers Set zVarTypes = MyWorkspace.ActiveDocument.VarTypes 'Create a "intern driver" variable called "TestVariable" with object type "internal variable" and datatype "INT" Set zVariable = zVariables.CreateVar("TestVariable", zDrivers.Item(0), 33, zVarTypes.Item("INT")) 'Create 5 editor limits at the "TestVariable" For i = 0 To 4 zVariable.CreateEdLimit Next i 'Delete the 2nd limit zVariable.DeleteEDLimit ("Limit[5]") End Sub