Place to put your Basic demos and examples

Moderator: Mmiscool

User avatar
By Mmiscool
#27733 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
User avatar
By flywire
#61537 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