Exception Handling in JScript

edited 10:47PM in FastScript
What is the proper syntax for error handling using JScript?

Below are two examples, one in C++Script (which works) and the other in JScript (which does not work).

Thanks!
-=-=-=-=

The following works:
#language C++Script

{

try {
ShowMessage(5/0);
} except {
ShowMessage("Error");
}

}


The following does not work:

#language JScript

try {
ShowMessage(5/0);
} except {
ShowMessage("Error");
}

Comments

  • edited 10:47PM
    It is due to error in the JScript language definition. Wait for FS1.4.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.