cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Submit your abstract to the call for content for Discovery Summit Americas by April 23. Selected abstracts will be presented at Discovery Summit, Oct. 21- 24.
Discovery is online this week, April 16 and 18. Join us for these exciting interactive sessions.
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.