329 TAB tabulation Purpose TAB can only be used with the keywords PRINT and INPUT . There are two versions: TAB(X) will print spaces up to a certain column position. If the flashing cursor is beyond the required position then the cursor will move to the next line down and space across to the required column. TAB(X,Y) will move the cursor directly to position X,Y on the screen. Note that once TAB(X,Y) has been used on a line TAB(X) may not move to the correct position on the line. The origin (for all text commands) is at the top left of the current text area of the screen. The left hand column of the screen is column number 0.
The right hand column is column 19, 39 or 79 depending on the graphics MODE selected. The top line is line number 0, the bottom line is line number 31 or 24; If the text scrolling area of the screen is changed then the TAB command will still work as outlined above. Examples 340 PRINT TAB(10);name$TAB(30);job$ 440 PRINT TAB(20,31);value 230 INPUT TAB(10,20) "How much" cost 875 INPUT TAB(30), "Doctor's name", DOC$ Description TAB with a single argument prints spaces (and a new line if necessary) to reach the specified column. TAB with two arguments moves the cursor directly to the specified coordinates.