UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
Code Description Examples In the following example, the UniData udtlang.MSG file contains error message 4432 and a user-defined file (S_ERR) contains error message E009. These messages contain the following: 1-581 UniBasic Commands Reference T Enters the time in internal format. W(n) Pauses for n seconds before continuing to display the message. X Skips the next parameter passed to the UniData message printing routine. PRINTERR Error Message Codes (continued) Message 4432 Message E009 in udtlang.MSG in S_ERR L L(2) E FILE H => ERR A(10) S(6) H DOES NOT EXIST E L L H CAN’T PROCEED! A L H IS NOT PROPERLY SPECIFIED D L L T L The following code segment produces an error message if the file you enter for FNAME cannot be found or you enter 12 for VAR1: OPEN "S_ERR" TO E_FILE ELSE STOP "S_ERR NOT FOUND" INPUT FNAME INPUT VAR1 ER1 = "4432":@FM:FNAME ER2 = "E009":@FM:"VAR1" OPEN FNAME TO TFILE ELSE PRINTERR ER1 STOP END IF VAR1 > 10 THEN PRINTERR ER2 FROM E_FILE
If you enter file_test for FNAME and file_test cannot be found, the program segment produces the following error message: [4432] FILE test_file DOES NOT EXIST CAN'T PROCEED! 19 Jan 1996 10:34:19 If you enter 12 for VAR1, the program segment produces the following error message: =>ERR [E009] VAR1 IS NOT PROPERLY SPECIFIED PRINTERR 1-582
- 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 604 and 605: PAGE Syntax PAGE [ON num.expr] [exp
- 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 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 654 and 655: Example In the following example, t
- Page 656 and 657: Parameters The following table desc
- Page 658 and 659: Related Commands UniBasic READBCK,
- Page 660 and 661: Parameters The following table desc
- Page 662 and 663: Related Commands UniBasic READBCK,
- Page 664 and 665: Parameters The following table desc
- Page 666 and 667: UniData DEFAULT.LOCKED.ACTION - For
- Page 668 and 669: Parameters The following table desc
- Page 670 and 671: READNEXT Syntax READNEXT id.var [,
If you enter file_test for FNAME and file_test cannot be found, the program segment<br />
produces the following error message:<br />
[4432] FILE test_file DOES NOT EXIST<br />
CAN'T PROCEED!<br />
19 Jan 1996<br />
10:34:19<br />
If you enter 12 for VAR1, the program segment produces the following error<br />
message:<br />
=>ERR [E009]<br />
VAR1 IS NOT PROPERLY SPECIFIED<br />
PRINTERR 1-582