Removes a user-defined variable with the specified index from the user-defined variable collection of the shape, and returns the number of remaining variables.
Applies to: Shape object
[[Let] countRet =] object.RemoveVariable ( index ) |
The RemoveVariable method syntax has these parts:
Part | Description |
object | Required. An expression that returns a Shape object. |
index | Required. An expression that returns a Long value. The index of the variable to be deleted in the user-defined variable collection of the shape. |
countRet | Optional. A Long type variable. |
If index is less than 1 or greater than the number of user-defined variables of the shape, the RemoveVariable method doesn't delete anything and returns the current number of user-defined variables of the shape. To find out the number of user-defined variables of the shape, use the VariablesNum method.
See Also |
AddVariable method, Variable method, VariablesNum method, Variable object |