>Maybe I can check for a combination of .ErrorCode (set in Error method) and RETURN TO ...
>In Error method code RETURN TO PROGRAM( ... )
>and in calling code :
>IF UtilityClass.SomeMethod() = .T. and UtilityClass.ErrorCode = 0
>ELSE
> *check for error code and info
>ENDIF
>But this leads to another question, how to return (even .T.) to calling program?
>I know that exists PROGRAM(), SYS(16) functions, but is possible to be used in such a scenario?
As far as I know, you can't return it this way -- but you provide a possible answer above, where you check the UtilityClass.ErrorCode. If you have this, do you really need to know the return value of the function?