LB Booster
Programming >> Liberty BASIC language >> Graphicbox repetition http://lbb.conforums.com/index.cgi?board=lblang&action=display&num=1474620490 Graphicbox repetition
Post by Richard Russell on Sep 23rd, 2016, 08:48am
The program SPRITTST.bas supplied with LB 4.04 and LB 4.5.0 contains the following code:
Code:
graphicbox #w.g, 0, 0, 400, 300
open "sprite test" for window_nf as #w
graphicbox #w.g, 0, 0, 400, 300
I've always assumed that the repetition of the graphicbox statement - one before and one after the open - is just a typo, and to make LBB compatible I arranged that it ignores the second statement. But was that the right conclusion? Does the second graphicbox statement have some effect that I'm not aware of (or did it in some earlier version of LB)?
Richard.
Re: Graphicbox repetition
Post by Rod on Sep 23rd, 2016, 1:17pm
Simple typo, control statements after the open statement get ignored.
Re: Graphicbox repetition
Post by Richard Russell on Sep 23rd, 2016, 3:09pm
Simple typo, control statements after the open statement get ignored.
Right, OK, thank you. I wonder why it hasn't been corrected, especially as it's a supplied 'example' program which presumably new users are expected to learn from!