Changes in $status and if-statement?
Author: sven.hedqvist@gmail.com (Sven_Hedqvist)
We are currently working on migrating from Uniface8 to 9 and during our testing I stumble upon this:
In Uniface 8 the following behaviour was true: a global or local function returning a boolean true in an if-statement did not effect $status. An example
$status = 0
if (gf_return_bool(inparam))
; $status is still 0
endif
In Uniface 9 the following behaviour is true: a global or local function returning a boolean true in an if-statement WILL effect $status. An example
$status = 0
if (gf_return_bool(inparam))
; $status is 1
endif
Has anyone else had problems with this and know a way of not getting the behaviour we see in Uniface 9. If we cannot get the behaviour of Uniface 8 we are facing some serious work of making sure this doesn't cause any serious problems.
// Sven Hedqvist