AddVariableInt method
The AddVariableInt method adds an integer variable and its value to an object. You can use this method when you need to pass values to custom actions.
Syntax
- VBScript
oDCO.AddVariableInt (strName as String, nValue as Integer) as Boolean.- C#
bool AddVariableInt(string strName, int nValue)
Applies to
All object types.
Arguments
- strName
- The variable name
- nValue
- The value of the variable as an integer. This method also accepts a double, but rounds the double to the nearest integer before the method assigns the value to the object.
Returns
Returns true if successful; returns false if unsuccessful.
Example
See AddVariable method.