ErrorRegister()
Syntax
Result = ErrorRegister(Register)Description
Returns the content of the specified CPU register at the time of the error. This command only returns a meaningful value if there was an error handled by OnErrorCall() or OnErrorGoto().
Parameters
Register The available register constants depend on the CPU type for which the program is compiled. The following values are available:
x86:#PB_OnError_EAX #PB_OnError_EBX #PB_OnError_ECX #PB_OnError_EDX #PB_OnError_EBP #PB_OnError_ESI #PB_OnError_EDI #PB_OnError_ESP #PB_OnError_Flagsx64:#PB_OnError_RAX #PB_OnError_RCX #PB_OnError_RDX #PB_OnError_RBX #PB_OnError_RSP #PB_OnError_RBP #PB_OnError_RSI #PB_OnError_RDI #PB_OnError_R8 #PB_OnError_R9 ... #PB_OnError_R15 #PB_OnError_Flags
Return value
The content of the specified CPU register at the time of the error.
Supported OS
All