UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

BPIOCPN Syntax BPIOCPN Description The UniBasic BPIOCPN command turns off automatic pagination. With pagination off, printing to a terminal does not pause at the bottom of each screen display. Example In the following example, the program prints the first 60 records of the INVENTORY file with pagination disabled by @(0,0). Then the BPIOCP command enables automatic pagination. The next 23 records are printed, and the user is prompted to press ENTER to continue. At this point, the user also can enter N to disable pagination. 1-113 UniBasic Commands Reference

After all 60 records have printed, BPIOCPN executes. A prompt displays this information. When the user presses ENTER at the prompt, 60 records print with pagination off. JUNK = @(0,0) ; * Disable pagination OPEN 'INVENTORY' READONLY TO INVENTORY.FILE ELSE NULL SELECT INVENTORY.FILE PRINT "Printing after terminal addressing: @(0,0)" FOR X = 1 TO 60 READNEXT REC THEN PRINT REC NEXT X PRINT "Sixty rec ids printed." PRINT "BPIOCP executing." BPIOCP ; *Enable pagination FOR X = 1 TO 60 READNEXT REC THEN PRINT X:" ":REC NEXT X PRINT "Sixty rec ids printed." PRINT "BPIOCPN executing." INPUT var BPIOCPN ; *Disable pagination FOR X = 1 TO 60 READNEXT REC THEN PRINT X:" ":REC NEXT X PRINT "Sixty rec ids printed." CLEARSELECT END Related Command UniBasic BPIOCP BPIOCPN 1-114

BPIOCPN<br />

Syntax<br />

BPIOCPN<br />

Description<br />

The <strong>UniBasic</strong> BPIOCPN command turns off automatic pagination. With pagination<br />

off, printing to a terminal does not pause at the bottom of each screen display.<br />

Example<br />

In the following example, the program prints the first 60 records of the INVENTORY<br />

file with pagination disabled by @(0,0). Then the BPIOCP command enables<br />

automatic pagination. The next 23 records are printed, and the user is prompted to<br />

press ENTER to continue. At this point, the user also can enter N to disable<br />

pagination.<br />

1-113 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!