TryError | |||
Syntax: | |||
TryError() | |||
Parameters: | |||
| |||
Return Values: | |||
| |||
Description: | |||
Begins an error section. An error section is composed with an If-Else-EndIf block. The program will always reach the If part and jumps to the Else part when an error occured. | |||
Example: | |||
a.l = 4 b.l = 0 If TryError() ; executed a = a / b ; throws error Else ; executed because an error occured MessageRequester(Hex(GetTryErrorCode()), Hex(#EXCEPTION_INT_DIVIDE_BY_ZERO)) EndIf : EndTryError() | |||
Remarks: | |||
tested with 2k/XP | |||
|