11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DELETEU<br />

Syntax<br />

DELETEU [file.var,] record.ID.expr [ON ERROR statements]<br />

Description<br />

The <strong>UniBasic</strong> DELETEU command deletes the specified record from a UniData file.<br />

The DELETEU command retains record locks that were set by the same user process.<br />

This allows UniData to delete a record and re-create it while retaining a lock on it.<br />

Note: The DELETE command also deletes a record, but it releases locks. This is the<br />

only difference between DELETE and DELETEU statements.<br />

<strong>UniBasic</strong> locks are advisory only. For information about UniData file and record<br />

locks, see Developing <strong>UniBasic</strong> Applications.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

file.var, Specifies the file from which to delete the record.<br />

If you do not specify a file.var, UniData reads from the default<br />

file. If no default file is open, a fatal DELETE error occurs.<br />

A default file is one for which no file variable is assigned in the<br />

OPEN statement.<br />

record.ID.expr Specifies the record to delete.<br />

ON ERROR statements Specifies <strong>UniBasic</strong> statements to execute if the DELETE<br />

statement fails because UniData cannot find the file, or a<br />

default file is not open. If you do not specify the ON ERROR<br />

clause, the program terminates.<br />

DELETEU Parameters<br />

DELETEU 1-208

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

Saved successfully!

Ooh no, something went wrong!