cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
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!

Recommended Articles