Hello everyone.
I am programming a custom dialog box for Stata. This dialog box contains two EDIT fields (main.ed_1 and main.ed_2) and a button that calls a program named "append." I would like the program to take the content of main.ed_2 and add it to the content of main.ed_1 so that if main.ed_1 contains "this" and main.ed_2 contains "that", when the button is pressed, the content of main.ed_1 becomes "thisthat".
For that, I wrote the program as follows:
PROGRAM append
BEGIN
call main.ed_1.append main.ed_2
END
However, this literally adds "main.ed_2" instead of the string that main.ed_2 contains. I tried using `main.ed_2', but it doesn't work. What am I doing wrong?
I am programming a custom dialog box for Stata. This dialog box contains two EDIT fields (main.ed_1 and main.ed_2) and a button that calls a program named "append." I would like the program to take the content of main.ed_2 and add it to the content of main.ed_1 so that if main.ed_1 contains "this" and main.ed_2 contains "that", when the button is pressed, the content of main.ed_1 becomes "thisthat".
For that, I wrote the program as follows:
PROGRAM append
BEGIN
call main.ed_1.append main.ed_2
END
However, this literally adds "main.ed_2" instead of the string that main.ed_2 contains. I tried using `main.ed_2', but it doesn't work. What am I doing wrong?

Comment