Exception Handling in JScript
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");
}
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