Hi,
I'm practising on JSL to select a .jmp file to open through a file dialog window. If the user did not make a selection, to exit.
However, I'm getting the below error:
Unexpected "{". Perhaps there is a missing ";" or ",".
Line 7 Column 21: if (Is Missing(fn)) ►{
The remaining text that was ignored was
{exit();}Open(fn);
My script below:
// Open a dialog to choose a .jmp file to open
// Get the filename of the .jmp file to open
fn = Pick File("Select a .jmp file to open", "", {"JMP Files|jmp;jsl;jrn", "All Files|*"}, 1, 1, "Default Filename.jmp");
// If the user did not select a file, exit the script
if (Is Missing(fn)) {
exit();
}
// Open the selected file
Open(fn);Appreciate if any one can point out what I'm missing here.
Thank you.