-->
Page 1 of 1

Web GUI Example

PostPosted: Thu Sep 03, 2015 2:32 pm
by Mmiscool
Simple gui example
Code: Select allcls
print "hello world"
let bla = "Test contents of textbox"
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"
let bla = "number 2 was clicked"
wait

[TestExit]
end

Re: Web GUI Example

PostPosted: Wed Jan 25, 2017 11:11 pm
by flywire
Running ESP Basic 3.0.Alpha 66

Code: Select allhello world
Test contents of textbox
Error at line 5: The arguments must be 2!
Error at line 5: Halted

Lines 5, 6 and seven should have a ',' after the first parameter as below:

Code: Select allcls
print "hello world"
let bla = "Test contents of textbox"
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"
let bla = "number 2 was clicked"
wait

[TestExit]
end