Defining controls
Posted: Mon Jul 01, 2019 11:20 pm
dim W$(8) 'contains handle, legend, actionsub, "UL", x, y, w, h
.
call example W$()
.
.
end
sub example X$()
.
.
testvar=3
select case testvar
case 3
hdl$=X$(1)
button , #hdl$, X$(2), X$(3), X$(4), val(X$(5)), val(X$(6)), val(X$(7)), val( X$(8))
case xx
.
.
end select
will not compile, it reports Missing ")" in the "button" line. There are other CASE statements, if I comment out the first one, the next one gives me the same result. My plan was to be able to create a window with various controls, depending on the actions taken in a previous window. I've got to be missing something here [other than a ")", I'm sure they are all paired], it's practically always my fault, usually missing something in the documentation.
.
call example W$()
.
.
end
sub example X$()
.
.
testvar=3
select case testvar
case 3
hdl$=X$(1)
button , #hdl$, X$(2), X$(3), X$(4), val(X$(5)), val(X$(6)), val(X$(7)), val( X$(8))
case xx
.
.
end select
will not compile, it reports Missing ")" in the "button" line. There are other CASE statements, if I comment out the first one, the next one gives me the same result. My plan was to be able to create a window with various controls, depending on the actions taken in a previous window. I've got to be missing something here [other than a ")", I'm sure they are all paired], it's practically always my fault, usually missing something in the documentation.