Execute with SetValue

Thulani shared this question 4 years ago
Answered

I want to achive the following:

SetValue(t1,t1 + buttonCaption)

t1 is a text variable which is held by textBox variable. buttonCaption is the caption of the button I click to execute the command above.

When I try to combine Execute with SetValue, I become a new born baby in logic.

I tried this:

SetValue(symbol,"∠")


Execute({"SetValue("+textBox+"," + textBox + symbol +")"})

Nothing seems to work.

Comments (3)

photo
1

UnicodeToLetter[34] is what I was missing. I'm still learning anyway.

photo
1

Execute({"SetValue(t1,t1+ symbol)"})

photo
1

Thanks, but as I specified above, textBox will hold t1. But I have it sorted anyway.

Execute({"SetValue("+textBox+"," + textBox + symbol +")"})

photo
© 2022 International GeoGebra Institute