cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
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.