cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

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