Changing bt0.txt variable from a text box?

Hi Guy’s,

I have created a screen with 12 buttons that I can use to send commands to an asterisk based node that will change link/unlink the node number shown on the button.

Focussing on 1 button:
I have 2 lines of text on the button, a callsign and a node number. I have assigned va1.txt as callsign and va2.txt as node number then set bt0.txt=va1.txt+“\r”+va2.txt to write the 2 lines to the button.

va1.txt=“”
va2.txt=“”
bt0.txt=va1.txt+“\r”+va2.txt

For setup and testing I have manually written that code into the PreInitializatioEvent for page0 where the buttons are located. This ensures the text is displayed at power, putting it in an event for each button would mean it is only populating the button.txt when the button is activated you see.

I have now created a QUERTY on screen keyboard (page2) which will write any text I like into a text box on the same screen (page2). What I want to now is to select a button number and type in the text box a callsign and node number and have that data update va1.txt and va2.txt.

Is that even possible?

Thanks.

Cancel, I worked it out.