beautypg.com

Rpbasic-52 programming guide – Remote Processing BASIC 52 User Manual

Page 129

background image

RPBASIC-52 PROGRAMMING GUIDE

2-110

TAB

Syntax:

P R I N T T A B (position)
Where: position = 1 to 255

Function:

Specifies a column number at to begin printing.

Mode:

Comm and, run

Use:

PRINT TAB(5), "Pressure", TAB (20),"Temperature"

Cards:

All

D E S C R IP T I ON

TAB is used with PRINT . It is used to print data in table form. If the cursor is past the requested column, the
instruction is ignored.

E R R O R

B A D A R G U M E N T When position is negative or out of range.

EXAMPLE

100 PRINT TAB(5),"Pressure",TAB(20),"Temperature"
110 FOR N=0 TO 6
120 PRINT TAB(7),AIN(0)*.237,
130 PRINT TAB(23),AIN(1)*1.324
140 NEXT

>run

Pressure Temperature
116.13 237.3
116.14 237.3

116.13 237.4
116.14 237.4
116.11 237.0
116.16 237.6
116.13 237.5