I'm having trouble understanding what the application object Idle function is expecting as an input parameter.
The documentation doesn't really say what the data type is and the only examples show using a literal.
Does it have to be a literal?
I want to pass a variable instead of a hard coded literal but I don't know if it's expecting an integer or a long.
I've tried both and both seem to work although not consistently.
Sometimes the first call fails but if I call it a second time it works.
I would like to use a long and cap the max time but not sure what's happening because some values fail.
It seems it might be related to the size of the actual value being used.
There also seems to be issues with integer overflow if the value exceeds what an integer can hold.
Does anyone have any insights into this function?
Using PowerBuilder 2022 Build 1892.
* "Overflow of real, double, and decimal values causes errors at runtime."
* "Overflow of signed or unsigned integers and longs causes results to wrap. However, because integers are promoted to longs in calculations, wrapping does not occur until the result is explicitly assigned to an integer variable."
At least this is documented :-)
Andreas.
So some variables throw an exception and others don't. How typical :)
No error, no warning, your responsibility.