如何使用文本編輯框將字符串發送到另一個文本編輯框?我想生成一個按鈕和兩個文本編輯框,當我將字符串輸入到第一個文本編輯框,然後按下按鈕時,另一個編輯框會顯示我輸入的內容,但是有兩個額外的單引號? 無論我輸入什麼,我都無法得到任何反饋。
nw = New Window( "test",
teb1 = Text Edit Box(""),
teb2= Text Edit Box(""),
btn1=Button Box( "Enter",teb2("'"||char(teb1 << Get)||"'")
)); 腳本編寫回复:如何使用 TextEdit 框將字符串發送到另一個 textEditbox?要從文本編輯框中獲取值,請使用 << Get Text 並使用 << 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) || "'")
)
);