When you use the Print # statement to print to files, the rightmost print position is the current width of the output file, which you can set by using the Width # statement. The leftmost print position on an output line is always 1. If the calculated print position is greater than the current print position, printing begins at the calculated print position on the same line. If n is less than the current print position, printing begins on the next line at the calculated print position. If n is greater than the output line width, Tab calculates the next print position using the formula: n Mod width.įor example, if width is 80 and you specify Tab(90), the next print will start at column 10 (the remainder of 90/80). If n is less than 1, Tab moves the print position to column 1. If the current print position on the current line is greater than n, Tab skips to the _n_th column on the next output line. This allows Tab to be used instead of a comma in locales where the comma is used as a decimal separator. If omitted, Tab moves the insertion point to the beginning of the next print zone. The optional n argument is the column number moved to before displaying or printing the next expression in a list. Used with the Print # statement or the Print method to position output.
0 Comments
Leave a Reply. |