cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
Jiaxiang
Level I

How to use TextEdit box to sent the string to another textEditbox?

I want to generate one button and two textedit box, when I input the strings to the first textedit box, and then press the button, antoher editbox will show what I entered, but with two additional single quote? I just cannot get anything feedback whatever I entered. 

nw = New Window( "test",
teb1 = Text Edit Box(""),
teb2=  Text Edit Box(""),
 btn1=Button Box( "Enter",teb2("'"||char(teb1 << Get)||"'")
 )); 
1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How to use TextEdit box to sent the string to another textEditbox?

To get values from Text Edit Box use << Get Text and to set values use << Set Text

Names Default To Here(1);

nw = New Window("test",
	teb1 = Text Edit Box(""),
	teb2 = Text Edit Box(""),
	btn1 = Button Box("Enter", 
		teb2 << Set Text("'" || Char(teb1 << Get Text) || "'")
	)
);
-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: How to use TextEdit box to sent the string to another textEditbox?

To get values from Text Edit Box use << Get Text and to set values use << Set Text

Names Default To Here(1);

nw = New Window("test",
	teb1 = Text Edit Box(""),
	teb2 = Text Edit Box(""),
	btn1 = Button Box("Enter", 
		teb2 << Set Text("'" || Char(teb1 << Get Text) || "'")
	)
);
-Jarmo
Jiaxiang
Level I

Re: How to use TextEdit box to sent the string to another textEditbox?

Thanks!