cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

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

Text Edit Box Inside a For Loop

Hi,

 

I want to generate text edit boxes using a For Loop. I was wondering how could I get text from each text box and use it later (I need to use it later in a Select Where function)

 

Here is my script. It can generate the display boxes but seems can not get the text from them. There is an error message.

prefix = [];
win = New Window("Start",
	<<Modal,
	<<ReturnResult,
    
	
	vlb = Vlistbox(),
	
	For(i = 1, i<= N items(files), i++,
	vlb << Append(Vlistbox(
				Text Box(concat("Adding Prefix",char(i))),
			        Text Edit Box("" <<Script( Print( prefix[i] << Get Text ))),
				),
				),
	//show (prefix[i]);				
				);
	
	
    H List Box(
		Button Box("OK",
			
		),
		Button Box("Cancel",
			stop_flag = 1;
		)
	),
);



If (stop_flag,
	Stop();
	);

 Any help would be really appreciated!

 

1 REPLY 1
peng_liu
Level VII

Re: Text Edit Box Inside a For Loop

Missing a comma?

peng_liu_0-1596206087721.png

 

Recommended Articles