Choose Language Hide Translation Bar
Highlighted
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
Highlighted
gzmorgan0
Super User

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
Highlighted
gzmorgan0
Super User

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

Highlighted
CSG
CSG
Level I

Re: Text box inside a For loop

Great. Many thanks.

Article Labels

    There are no labels assigned to this post.