Liberty BASIC Help Online

TAB( n )
Print TAB(n)
Liberty BASIC 4 has the ability to use the TAB function for formatting output to the mainwin and to the printer.  "n" is the character location where the next output will be printed.  "tab(7)" causes the next output to print beginning at column (character) 7, while "tab(21)" causes the next output to print beginning at column 21. TAB(n) works with both the mainwin PRINT command and with LPRINT.
 
    'show how tab() works
    print "x"; tab(7); "sine"; tab(21); "cosine"
    for x = 1 to 10
      print x; tab(7); sin(x); tab(21); cos(x)
    next x
    end


Copyright (C) 2003 Shoptalk Systems
Liberty BASIC - http://www.libertybasic.com/