Jump to content

- - - - -

Global Logic Return Values

No replies to this topic

#1 Chris Pepper

Chris Pepper

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 369 posts
  • Gender:Male
  • Location:United Kingdom

Posted 10 August 2012 - 01:01 PM

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.

Reply to this topic


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users