Error Handling
|
Purpose: |
Lets you test a block of code for errors |
|
Category: |
Error Handling |
|
Syntax: |
Try |
|
Example: |
Try Throw "This is an error" Catch AlertBox "There was an error" "Error: [lastError]" "" Finally AlertBox "Finally" "This will execute allways" "" EndTry |
|
Purpose: |
Lets you handle the error. Use it inside a Try / EndTry block |
|
Category: |
Error Handling |
|
Syntax: |
Catch |
|
Example: |
Try Throw "This is an error" Catch AlertBox "There was an error" "Error: [lastError]" "" Finally AlertBox "Finally" "This will execute allways" "" EndTry |
|
Purpose: |
Lets you create custom errors. Use it inside a Try / EndTry block |
|
Category: |
Error Handling |
|
Syntax: |
Throw "Error message" |
|
Example: |
Try Throw "This is an error" Catch AlertBox "There was an error" "Error: [lastError]" "" Finally AlertBox "Finally" "This will execute allways" "" EndTry |
|
Purpose: |
Lets you execute code, after try and catch, regardless of the result. |
|
Category: |
Error Handling |
|
Syntax: |
Finally |
|
Example: |
Try Throw "This is an error" Catch AlertBox "There was an error" "Error: [lastError]" "" Finally AlertBox "Finally" "This will execute allways" "" EndTry |
Created with the Personal Edition of HelpNDoc: Effortlessly Create Encrypted, Password-Protected PDFs