dim dd$(5) ' drop down box for i = 1 to 5 dd$(i) = "Drop ";i next i value$ = "1234" notes$ = "Rosetta Code is good" bf$ = "" [screen] cls html bf$;"
" html "" html "
Rosetta Code
Value:" textbox #val,value$,5 html "
Radio" radiogroup #rdo,"1,2,3,4,5",rdo$ #rdo horizontal(1) html "
Drop Down" listbox #dd,dd$(),1 html "
Notes" textarea #notes,notes$,25,3 html "
" button #inc, "Increment", [incr] button #rnd, "Random", [rand] button #ex, "Exit", [exit] html "
" wait [incr] value = val(#val contents$()) value$ = str$(value + 1) goto [screen] [rand] value$ = str$(int(rnd(1) * 10000)) goto [screen] [exit] print "Bye" end