Handle variables in control definition statements
Posted: Sun May 26, 2019 11:57 pm
There seems to be some sort of prohibition for using handle variables in control definition statements. For example:
hw$="WIN"
hc$=hc$+".txt"
statictext #hc$, "This is text", x, y, w, h
open "Test Window" for window as #hw$
where x, y, w, h are previously set variables, gives me compile errors on both the statictext and open statements. Replacing the handle variables with literal handles works fine. I can't find any restrictions in either the LB4 or LBB documentation ... but that doesn't mean it isn't there of course. Enlightenment, or a pointer to enlightenment, would be welcome. Best regards
hw$="WIN"
hc$=hc$+".txt"
statictext #hc$, "This is text", x, y, w, h
open "Test Window" for window as #hw$
where x, y, w, h are previously set variables, gives me compile errors on both the statictext and open statements. Replacing the handle variables with literal handles works fine. I can't find any restrictions in either the LB4 or LBB documentation ... but that doesn't mean it isn't there of course. Enlightenment, or a pointer to enlightenment, would be welcome. Best regards