Forum Discussion
Gordian
13 years agoOccasional Contributor
I am also interested to know if this is a limitation.
There is an internal variable as shown below that could be used and then checked by the user's script / keyword test. Is that the recommended approach?
var number;
var last_status; // An internal variable that holds the LastStatus property value
// The set method of the Number property
function SetNumber(Value)
{
try
{
number = aqConvert.VarToInt(Value);
last_status = 0; // The property value has been successfully modified
}
catch (e)
{
last_status = e.number; // An error indicating that Value could not be converted to an integer
}
}
There is an internal variable as shown below that could be used and then checked by the user's script / keyword test. Is that the recommended approach?
var number;
var last_status; // An internal variable that holds the LastStatus property value
// The set method of the Number property
function SetNumber(Value)
{
try
{
number = aqConvert.VarToInt(Value);
last_status = 0; // The property value has been successfully modified
}
catch (e)
{
last_status = e.number; // An error indicating that Value could not be converted to an integer
}
}
Related Content
- 5 years ago
- 14 years ago
- 10 years ago
Recent Discussions
- 46 minutes ago
- 6 days ago
- 10 days ago