- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
New to JMP and JSL - Unexpected ",". Perhaps there is a missing ")".
Hi all,
I'm new to JMP and JSL. I'm following a basic tutorial on JSL and followed the instructions to the T on copying the following script. It should create a new window with the text "Hello" inside it:
title = "JSL Demo";
content = Text Box("Hello");
New window = ( title, content )
But upon running it, the follow error came up:
Unexpected ",". Perhaps there is a missing ")".
Trying to parse operand for "=" operator.
Line 3 Column 21: New window = ( title►, content )
I couldn't figure out what is wrong with the script.
Can anybody please help to point that out?
Thank you.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: New to JMP and JSL - Unexpected ",". Perhaps there is a missing ")".
New Window us a function. The "=" is what is making the JSL fail. It needs to be:
title = "JSL Demo";
content = Text Box("Hello");
New window( title, content )
Also, when you include JSL within a Discussion, please use the JSL icon to enter the code. It really helps the readability for the Community Members.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: New to JMP and JSL - Unexpected ",". Perhaps there is a missing ")".
New Window us a function. The "=" is what is making the JSL fail. It needs to be:
title = "JSL Demo";
content = Text Box("Hello");
New window( title, content )
Also, when you include JSL within a Discussion, please use the JSL icon to enter the code. It really helps the readability for the Community Members.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: New to JMP and JSL - Unexpected ",". Perhaps there is a missing ")".
Hi Jim,
Thanks for your reply!
Well noted on using the JSL icon to enter the code. I did note my code appeared differently from other posts. Now I know!