cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
CSG
CSG
Level I

Text box inside a For loop

New to JMP and scripting.

I was wondering why 

New window("Report",
	For( i = 1, i <= 3, i++,
		Text box("hello");
	);
);

doesn't return 3 instances of text in a new window.

How would I go about outputing text in a window thats nested inside a for loop?

 

1 ACCEPTED SOLUTION

Accepted Solutions
gzmorgan0
Super User (Alumni)

Re: Text box inside a For loop

Try this

New window("Report",
   vlb = VlistBox();
);
For( i = 1, i <= 3, i++,
	vlb << Append(Text box("hello"));
);

View solution in original post

2 REPLIES 2
gzmorgan0
Super User (Alumni)

Re: Text box inside a For loop

Try this

New window("Report",
   vlb = VlistBox();
);
For( i = 1, i <= 3, i++,
	vlb << Append(Text box("hello"));
);
CSG
CSG
Level I

Re: Text box inside a For loop

Great. Many thanks.

Recommended Articles