Forum Discussion
RokuKC
9 years agoRoku Employee
"EnTerr" wrote:
GetLastRunRuntimeError() lists 2 numbers that could be "normal" exit codes for Run()/Eval() execution: &hFC and &hE2. The sample code under Run() checks for both too.
Of these i have seen only &hFC (252) so far. Is &hE2 still a thing? Can i ever get that?
If you brave the leopard 😉 see bslBrightScriptErrorCodes (https://sdkdocs.roku.com/display/sdkdoc ... rrorCodes()asObject)
and see
ERR_NORMAL_END : &hFC ' normal, but terminate execution. END, shell "exit", window closed, etc.
ERR_VALUE_RETURN : &hE2 ' return executed, and a value returned on the stack
An example of a value being returned on the stack is if you use the (not recommended) Run function.