UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
PAGE Syntax PAGE [ON num.expr] [expr] Description The UniBasic PAGE command prints the current output page. UniData prints the page with any specified header or footer. If you do not specify any parameters, the result depends on the last PRINTER command executed: 1-563 UniBasic Commands Reference PRINTER OFF – The new page is generated on the user’s terminal. PRINTER ON – The new page is generated on the system printer. Parameters The following table describes each parameter of the syntax. Parameter Description ON num.expr Specifies the page number of the next output page. Each subsequent page is incremented by one. expr Specifies a target print file for the completed page where num.expr is the number assigned to the file. When you specify a num.expr, the PRINTER command setting is disregarded. For assistance assigning print files, see your system administrator. PAGE Parameters
Examples In the following example, the program statement completes the current page with footings, then advances to a new page. The PRINTER command setting determines where the page is printed. PAGE In the next example, the program statement sends the completed page to the file assigned to print unit 5. If UniData cannot find the print unit specified, the program prints nothing. PAGE ON 5 Related Commands UniBasic PRINTER UniData SETPTR – For information, see the UniData Commands Reference. PAGE 1-564
- Page 554 and 555: The following table indicates which
- Page 556 and 557: OCONV Pattern Match (P) Syntax OCON
- Page 558 and 559: OCONV Range (R) Syntax OCONV(num.ex
- Page 560 and 561: OCONV SOUNDEX (S) Syntax OCONV(str.
- Page 562 and 563: OCONV Text Extraction (T) Syntax OC
- Page 564 and 565: OCONV File Translation (Tfile) Synt
- Page 566 and 567: OCONVS Syntax OCONVS(dyn.array.expr
- Page 568 and 569: ON/GOSUB Syntax ON expr GOSUB label
- Page 570 and 571: Related Commands UniBasic GOSUB, GO
- Page 572 and 573: Parameters The following table desc
- Page 574 and 575: Parameter Description 1-535 UniBasi
- Page 576 and 577: openSecureSocket function Syntax op
- Page 578 and 579: OPENSEQ Syntax OPENSEQ [absolutepat
- Page 580 and 581: STATUS Function Return Values After
- Page 582 and 583: The following table describes the r
- Page 584 and 585: Example The following example illus
- Page 586 and 587: OSBREAD Syntax OSBREAD var FROM fil
- Page 588 and 589: STATUS Function Return Values After
- Page 590 and 591: Writing to Other Types of Files For
- Page 592 and 593: Related Commands UniBasic CLOSESEQ,
- Page 594 and 595: Example In the following example, t
- Page 596 and 597: STATUS Function Return Values After
- Page 598 and 599: Parameters The following table desc
- Page 600 and 601: OSREAD Syntax OSREAD var FROM filen
- Page 602 and 603: OSWRITE Syntax OSWRITE expr {ON | T
- Page 606 and 607: PAUSE Syntax PAUSE [wait_time] Desc
- Page 608 and 609: PCPERFORM Syntax PCPERFORM str.expr
- Page 610 and 611: PERFORM PERFORM is a synonym for th
- Page 612 and 613: Related Command UniData FLOAT.PRECI
- Page 614 and 615: Example The following example illus
- Page 616 and 617: Parameters The following table desc
- Page 618 and 619: PRINTER Syntax PRINTER {ON | OFF} D
- Page 620 and 621: PRINTERR Syntax PRINTERR expr [FROM
- Page 622 and 623: Code Description Examples In the fo
- Page 624 and 625: PROCREAD Syntax PROCREAD var {THEN
- Page 626 and 627: The following globally cataloged pr
- Page 628 and 629: PROCWRITE Syntax PROCWRITE expr Des
- Page 630 and 631: PROMPT Syntax PROMPT str.expr Descr
- Page 632 and 633: protocolLogging Syntax protocolLogg
- Page 634 and 635: PWR Syntax PWR(num.expr1, num.expr2
- Page 636 and 637: Related Command UniBasic SQUOTE 1-5
- Page 638 and 639: READ Syntax READ dyn.array.var FROM
- Page 640 and 641: Example In the following example, t
- Page 642 and 643: Parameters The following table desc
- Page 644 and 645: READBCKL Syntax READBCKL dyn.array.
- Page 646 and 647: STATUS Function Return Values After
- Page 648 and 649: READBCKU Syntax READBCKU dyn.array.
- Page 650 and 651: STATUS Function Return Values After
- Page 652 and 653: READFWD Syntax READFWD dyn.array.va
PAGE<br />
Syntax<br />
PAGE [ON num.expr] [expr]<br />
Description<br />
The <strong>UniBasic</strong> PAGE command prints the current output page. UniData prints the<br />
page with any specified header or footer.<br />
If you do not specify any parameters, the result depends on the last PRINTER<br />
command executed:<br />
1-563 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />
PRINTER OFF – The new page is generated on the user’s terminal.<br />
PRINTER ON – The new page is generated on the system printer.<br />
Parameters<br />
The following table describes each parameter of the syntax.<br />
Parameter Description<br />
ON num.expr Specifies the page number of the next output page. Each subsequent<br />
page is incremented by one.<br />
expr Specifies a target print file for the completed page where num.expr is<br />
the number assigned to the file. When you specify a num.expr, the<br />
PRINTER command setting is disregarded.<br />
For assistance assigning print files, see your system administrator.<br />
PAGE Parameters