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
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.