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

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

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

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

Saved successfully!

Ooh no, something went wrong!