UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
STATUS Function Return Values After you execute RECORDLOCKED, the STATUS function returns one of the values described in the following table. Value Related Commands UniBasic FILELOCK, FILEUNLOCK, RECORDLOCKL, RECORDLOCKU, RELEASE 1-664 UniBasic Commands Reference RECORDLOCKED Return Value Meaning n A number between -1 and -4. The record is locked. The user number of the user who owns the lock is returned in n. 0 0 The record is not locked. -1 -11 The file is NFA. Currently, RECORDLOCKED does not support NFA files. -2 -12 Invalid file type. file.var can contain the null value. -3 -13 System error: unknown user. STATUS Function Return Values
RECORDLOCKL Syntax RECORDLOCKL [file.var,] record.ID.expr [ON ERROR statements] [LOCKED statements] Description The UniBasic RECORDLOCKL command checks for record locks. If the record is available, it sets a shared lock on the record. For an explanation of UniData locks, and for a sample program that you can use to test this command, see Developing UniBasic Applications. Parameters The following table describes each parameter of the syntax. Parameter Description file.var, Specifies the file from which to read the record. If you do not specify a file.var, UniData reads from the default file. If no default file is open, a fatal error occurs. The default file is one for which no file variable is assigned in the OPEN statement. RECORDLOCKL Parameters RECORDLOCKL 1-665
- 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 [,
- Page 672 and 673: Parameter Description Examples In t
- Page 674 and 675: READNEXTTUPLE Syntax READNEXTTUPLE
- Page 676 and 677: Example In the following example, t
- Page 678 and 679: READSEQ Syntax READSEQ var FROM seq
- Page 680 and 681: eadSocket Syntax readSocket(socket_
- Page 682 and 683: READT Syntax READT [UNIT (mu.expr)]
- Page 684 and 685: Example In the following example, t
- Page 686 and 687: Parameters The following table desc
- Page 688 and 689: Related Commands UniBasic CLOSE, DE
- Page 690 and 691: Parameter Description Examples In t
- Page 692 and 693: READVL Syntax READVL var FROM [file
- Page 694 and 695: Example In the following example, R
- Page 696 and 697: Parameters The following table desc
- Page 698 and 699: READXBCK Syntax READXBCK dyn.array.
- Page 700 and 701: READXFWD Syntax READXFWD dyn.array.
- Page 702 and 703: ReadXMLData Syntax ReadXMLData(xml_
- Page 704 and 705: RECORDLOCKED Syntax RECORDLOCKED (f
- Page 708 and 709: Parameter Description Examples In t
- Page 710 and 711: RECORDLOCKU Syntax RECORDLOCKU [fil
- Page 712 and 713: RELEASE Syntax RELEASE [file.var [,
- Page 714 and 715: ReleaseXML Syntax ReleaseXML(XMLhan
- Page 716 and 717: Example In the following example, c
- Page 718 and 719: Parameter Description The SETTING c
- Page 720 and 721: In some implementations, the values
- Page 722 and 723: REMOVE Syntax REMOVE(dyn.array.var,
- Page 724 and 725: REPLACE Syntax REPLACE(dyn.array.ex
- Page 726 and 727: In the next example, the program se
- Page 728 and 729: RESIZET Syntax RESIZET [UNIT(mu.exp
- Page 730 and 731: RETURN Syntax RETURN [TO label[:]]
- Page 732 and 733: Examples In the following example,
- Page 734 and 735: Example In the following example, t
- Page 736 and 737: RNDSEED Syntax RNDSEED expr Descrip
- Page 738 and 739: SADD Syntax SADD(x, y) Description
- Page 740 and 741: The following table describes the s
- Page 742 and 743: Example In the following example, t
- Page 744 and 745: SELECT Syntax SELECT file.var [TO {
- Page 746 and 747: Examples The following program segm
- Page 748 and 749: SELECTINDEX Syntax SELECTINDEX inde
- Page 750 and 751: Related Commands UniBasic DELETELIS
- Page 752 and 753: Related Commands UniBasic DELETELIS
- Page 754 and 755: Note: SEND with the X option suppre
STATUS Function Return Values<br />
After you execute RECORDLOCKED, the STATUS function returns one of the<br />
values described in the following table.<br />
Value<br />
Related <strong>Commands</strong><br />
<strong>UniBasic</strong><br />
FILELOCK, FILEUNLOCK, RECORDLOCKL, RECORDLOCKU, RELEASE<br />
1-664 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />
RECORDLOCKED<br />
Return Value Meaning<br />
n A number between -1<br />
and -4.<br />
The record is locked. The user number of the user<br />
who owns the lock is returned in n.<br />
0 0 The record is not locked.<br />
-1 -11 The file is NFA. Currently, RECORDLOCKED<br />
does not support NFA files.<br />
-2 -12 Invalid file type. file.var can contain the null value.<br />
-3 -13 System error: unknown user.<br />
STATUS Function Return Values