Something to play with...
ProIV Global Logic types can be A / N / W return a value using the RETURN() statement.
We have discovered that (up to and including ProIV 5.5 - our current version) there is no validation on the data type returned. If it is the "wrong" type then a a value is returned depending on the value stored in a ProIV internal temporary variable.
Example: Create a Global Logic type A and RETURN(-1) this returns a string of "00" when the Global logic is called in a Function.
You can also see this if you put in an EXIT or RETURN statement without a value - the value returned will be a value from previous temporary result.
I'm interested if this behaviour occurs in 6.x or 7.x or if any of the development environments trap it.
Global Logic Return Values
No replies to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users