I was under the impression that setting ERROR would retain it's value until a run-time error or ERRCLEAR was called. This seems not to be so. Can anybody explain why this works the way it does?
------------------
Cheers
Code:
#compile exe function SetError(byval ErrorCode as long) as long error ErrorCode msgbox format$(err,"err = # INSIDE function") end function function pbmain as long SetError 10 msgbox format$(err,"err = # OUTSIZE function") end function
------------------
Cheers
Comment