QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

The comma is used to TAB the cursor after a PRINT statement’s text to tab append another printed value.


INPUT “Name, age and sex(M or F): “, nm$, age%, sex$


Comparing TAB to comma tab spacing.

PRINT TAB(15); "T"

PRINT , "T" 

Comparing PRINT and WRITE statement displays.

value1 = 23567: value2 = 45678: value3 = 354126
COLOR 14: LOCATE 2, 1: PRINT value1, value2, value3
COLOR 12: LOCATE 4, 1: WRITE value1, value2, value3

23567        45678      354126


Note: WRITE does not space any values. The commas separate the numerical values without the normal PRINT spacing.

See Also