cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
BooBee
Level III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

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 txnelson_0-1699415730805.pngto enter the code.  It really helps the readability for the Community Members.

 

Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

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 txnelson_0-1699415730805.pngto enter the code.  It really helps the readability for the Community Members.

 

Jim
BooBee
Level III

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!