62 TAB(X) As well as controlling the print layout by using the comma and semi-colon you can use the TAB statement to start printing at a particular place on the screen. You will remember that there can be 20, 40 or 80 characters to the line depending on the MODE . MODE 7 has 40 characters. Try this: 10 PRINT "012345678901234567890" 20 F=16 30 REPEAT 40 PRINT TAB(10);F;TAB(15);2*F 50 F=F+1 60 UNTIL F=18 >RUN 012345678901234567890 16 32 17 34 TAB(10) prints the value of F ten spaces from the left and then TAB(15) prints the value of 2*F 15 spaces from the left, on the same line. Note the semi- colon after TAB(10) – this causes the computer to begin printing at that point.
Be sure to place an open parenthesis immediately after the word TAB . If you leave a space between them, thus: TAB (10) the computer will not understand and will report No such variable If you are beyond the place that you tell the computer to tab to, for example in position 15 with request to TAB(10) , then the computer moves to the next line and then tabs ten spaces. Type in this replacement line: 40PRINT TAB(15);F;TAB(10);2*F >RUN 012345678901234567890 16 32 17 34 TAB(X,Y) A useful extension of the TAB statement allows print to be placed at any specific character location anywhere on the screen. You will remember that in MODE 7 the text coordinates are