tab ============================================== Purpose ---------------- Tabs the cursor to a specified text column. Format ---------------- .. function:: tab(col) :param col: the column position to tab to. Can be in the following format: :type col: scalar Remarks ------- Can be specified multiple times in a `print` statement: :: print expr1 expr2 tab(col1) expr3 tab(col2) expr4 ... *col* specifies an absolute column position. If *col* is not an integer, it will be truncated. `tab` can be called alone or embedded in a `print` statement. You cannot embed it within a parenthesized expression in a `print` statement, though. For example: :: print (tab(20) c + d * e); will not give the results you expect. If you have to use parenthesized expressions, write it like this instead: :: print tab(20) (c + d * e); Examples -------- :: // Use tab to align output in columns print "Name" tab(20) "Score" tab(35) "Grade"; print "Alice" tab(20) 95 tab(35) "A"; print "Bob" tab(20) 82 tab(35) "B"; .. seealso:: Functions :func:`print`, :func:`sprintf`