Forum Discussion
Gordian
12 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
- 4 years agokiranka
- 10 years agobfourie
- 9 months agomortenb123
Recent Discussions
- 7 hours agosimonaferrara
- 16 hours agoSubhraDas
- 2 days agotramuntana