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

Parameter Description Examples In the following example, the program statement sets a shared lock on the record HOLLY in the default file. If the record is already locked by another user, the program waits until the record is released. RECORDLOCKL "HOLLY" In the next example, the program segment sets a lock on the record with the ID Smith from file CLIENT.FILE. If the record is locked, UniData displays the message “THE RECORD IS ALREADY LOCKED”. 1-666 UniBasic Commands Reference record.ID.expr Specifies a record to lock. ON ERROR statements RECORDLOCKL CLIENT.FILE,"Smith" LOCKED PRINT "THE RECORD IS ALREADY LOCKED" Related Commands UniBasic Specifies statements to execute if the RECORDLOCKL statement fails with a fatal error because the file is not open, an I/O error occurs, or UniData cannot find the file. If you do not specify the ON ERROR clause and a fatal error occurs, the program terminates. LOCKED statements Specifies statements to execute if another user has an exclusive lock on the record. If you do not specify a LOCKED clause, the program waits until the lock on the record is released. Use the ECL command DEFAULT.LOCKED.ACTION BELL to make the terminal beep while you wait for UniData to unlock the record. RECORDLOCKL Parameters (continued) FILELOCK, FILEUNLOCK, RECORDLOCKED, RECORDLOCKU, RELEASE

UniData DEFAULT.LOCKED.ACTION – For information, see the UniData Commands Reference. RECORDLOCKL 1-667

UniData<br />

DEFAULT.LOCKED.ACTION – For information, see the UniData <strong>Commands</strong><br />

<strong>Reference</strong>.<br />

RECORDLOCKL 1-667

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

Saved successfully!

Ooh no, something went wrong!