Text variables, Text variables: choice lists, Array of numbers – MTS Multipurpose Elite User Manual
Page 286

Description
Example (using variable num)
Method
Get the value of NUM as text
NUM.ValueToString
ValueToString
Text Variables
Description of Text Variables
Description
Example (using variable txt)
Method
Get the text value of TXT
TXT.Value.ValueAsString
Value
Set the text value of TXT
TXT.SetValue(value)
SetValue
Text Variables: Choice Lists
Description of Text Variables: Choice Lists
Description
Example (using variable txt)
Method
Get the text value of TXT
TXT.Value.ValueAsString
Value
Set the text value of TXT
TXT.SetValue(value)
SetValue
Array of Numbers
Description of Number Arrays
Description
Example (using variable numArray)
Method
Get the number of values stored in
NUMArray
NUMArray. Length
Length
Add a number to NUMArray
NUMArray. Add(value)
Add
Get the number stored at a specific
index in NUMArray
NUMArray.ArrayValue(index).ValueAsDouble
ArrayValue
Set the number stored at a specific
index in NUMArray
NUMArray.ArrayValue(index, value)
ArrayValue
286 | MTS TestSuite
Working with Variables