R
Rob Meade
Hi all,
Quick question if I may...
I have a function which depending on whether it was succesful to do
something or not returns True or False as a boolean.
I have another function which call this function (infact there are two
functions as described above)...
function myFunction() as Boolean
CallFunction1
CallFunction2
End Function
Ok - the above is not actually the code (its a bit better written than
that) - but you get the idea....
Now, although CallFunction1 and CallFunction2 are set to return a Boolean, I
dont actually do anything with the result when it comes back, and myFunction
doesn't return True/False either, at least not with me saying:
Return True
Return False
or
Return <my boolean variable as state> etc etc
What I was wondering was whether or not that fact that one of these inner
function calls returns true then automatically returns myFunction as
true/false even though I'm not explicitly setting it to do so...I'm getting
some odd "alternating" values in my database each day, ie, 20,30,20,30,20,30
and the only thing I could come up with was some odd behavious in this
code..
Any explanation regarding the Function / Boolean stuff would be
appreciated,
Regards
Rob
Quick question if I may...
I have a function which depending on whether it was succesful to do
something or not returns True or False as a boolean.
I have another function which call this function (infact there are two
functions as described above)...
function myFunction() as Boolean
CallFunction1
CallFunction2
End Function
Ok - the above is not actually the code (its a bit better written than
that) - but you get the idea....
Now, although CallFunction1 and CallFunction2 are set to return a Boolean, I
dont actually do anything with the result when it comes back, and myFunction
doesn't return True/False either, at least not with me saying:
Return True
Return False
or
Return <my boolean variable as state> etc etc
What I was wondering was whether or not that fact that one of these inner
function calls returns true then automatically returns myFunction as
true/false even though I'm not explicitly setting it to do so...I'm getting
some odd "alternating" values in my database each day, ie, 20,30,20,30,20,30
and the only thing I could come up with was some odd behavious in this
code..
Any explanation regarding the Function / Boolean stuff would be
appreciated,
Regards
Rob