I wish to set a usererror string before leaving a function, depending on the return code and variable in the function.
I currently have:
Dim RetVal as RetType
try
...
if ... then
RetVal = RetType.FailedParse
end try
endif
...
finally
select case RetVal
case ...
UserStr = ...
end select
end try
return RetVal
Is it possible to use return RetType.FailedParse, then access this in the finally block?