|
Post by nthrilla on Aug 24, 2023 7:47:19 GMT
Hello,
I've started development on a ZZT-style ascii game engine in Qbasic. I'm starting in QB 4.5 and then once I have the basic GUI layout figured out, I'd like to move it over to QB64 due to the amazingly large array size.
Despite programming in qbasic on and off since 1994, I seem to have forgotten how to PRINT on line 26. You'd think that VIEW PRINT 1-26 would allow for this, but it doesn't. I know this is a very rookie thing to forget. Can anyone help out?
|
|
|
Post by bplus on Aug 24, 2023 10:24:38 GMT
It's been decades since I used QB4.5 but didn't it only have 80 columns and 25 lines/rows on default screen as Qb64 still does ie last line you can print to is 25 and use ; at end there to prevent scrolling.
|
|
|
Post by marjagonzalves on Sept 5, 2023 23:21:58 GMT
WIDTH 80, 30 LOCATE 27, 1 PRINT STRING$(79, 61) VIEW PRINT 1 TO 26 FOR i = 1 TO 26 PRINT i; IF i < 26 THEN PRINT NEXT END
|
|
|
Post by bplus on Sept 5, 2023 23:54:37 GMT
Yeah I guess Width will buy you more rows. I completely forgot about Width for QB4.5 but works fine in QB64 too.
|
|