In another program I'm working on vars and the numbers printed take so long as to crash the device. To get around this in my current program I don't print anything else to the UI and everything else works, I use returngui to refresh. I just send updates to the serial line (serialprintln) for diagnosing work.
Here is the code:
cls
wprint "hello world <br>"
bla = "Test contents of textbox"
blb = "another variable"
blc = 32
bld = "yet another variable"
textbox bla
button "This is my button 1", [test1]
button "This is my button 2", [test2]
button "Exit", [TestExit]
wait
[test1]
print "You Clicked on 1"
print bla
wait
[test2]
print "You CLiked on 2"
bla = "number 2 was clicked"
wait
[TestExit]
end
Here is the serial output:
0 winsock connected 192.168.10.12
KO
guicmd:13
13
Current line = 12
You Clicked on 1
Test contents of textbox
vars
0
1
2
3
vars
0
1
2
3