Anybody use decimals for line numbers? - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: Chatting and Socializing (https://staging.qb64phoenix.com/forumdisplay.php?fid=11) +--- Forum: General Discussion (https://staging.qb64phoenix.com/forumdisplay.php?fid=2) +--- Thread: Anybody use decimals for line numbers? (/showthread.php?tid=732) |
Anybody use decimals for line numbers? - Pete - 08-04-2022 Code: (Select All) GOTO 98.6 Pete RE: Anybody use decimals for line numbers? - Jack - 08-04-2022 it never occurred to me, just tested it in QB for DOS and it works there also RE: Anybody use decimals for line numbers? - Pete - 08-04-2022 Yep, leave it to me to stumble on yet another 1/2 ASCII way to code something! Pete RE: Anybody use decimals for line numbers? - PhilOfPerth - 08-05-2022 I'm a bit bemused: why shouldn't it work? we can use words as labels, why not decimal numbers? RE: Anybody use decimals for line numbers? - bplus - 08-05-2022 Too bad we can't use variables, that would get interesting! GOTO 1/3 RE: Anybody use decimals for line numbers? - SMcNeill - 08-05-2022 I remember a couple old games which used this as an organization method. Was it Zork? Wizardry? The way it worked was by setting code sections into various number ranges. Example: Line 100.000 - 199.999 was character creation. Line 200.000 - 299.999 was character level up + skill acquire And so on. RE: Anybody use decimals for line numbers? - bplus - 08-05-2022 I'd do that with ole GW Basic, map out programs with line numbers. |