Flexibility was always the key with BASIC as a language, for any who are old enough, the way the world was in 1980.
I confess I have not written this stuff since about 1990 when a lady I knew had a twin floppy IBM PC to use MultiMate. If you have not written this style for a long time, its more work than you think but it makes the point that PowerBASIC supports a very wide range of programming styles.
Code:
000: FUNCTION PBMAIN AS LONG 001: ? "HOW TO WRITE ROM-BASIC USING POWERBASIC" 002: INPUT "ENTER A LOOP COUNT NUMBER > ",A$ 003: X& = VAL(A$) 004: L& = 1 005: ? STR$(L&)+" "; 006: L& = L& + 1 007: IF L& <= X& THEN GOTO 005 008: ? "PRESS ANY KEY TO EXIT ...." 009: WAITKEY$ 010: END FUNCTION
Comment