QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: ncc17o1a on August 06, 2021, 03:36:42 pm
-
Frustratingly, any basic I've used in the past, the 'Locate' command has always been used with the 'x' value first rather than the QB64 way of y,x which really annoying. Is it possible to change this or it a case of just having to work with it the way it is?
-
LOCATE uses row and column, and QB64 uses it the same way as QBASIC or QB4.5.
Use _PRINTSTRING for x & y positioning.
-
Here try my locake sub:
Locake j
* 8, i:
Print j
* 8;
-
It's done for backwards compatibility. If it were switched, old QBasic/QuickBasic 4.5 code wouldn't render properly in QB64.
Yes, it is a PITA, but I take up my cross and follow QB64 because the advantages are legion.
-
Actually before QBasic, GW Basic was this way too
http://www.antonis.de/qbebooks/gwbasman/index.html