HP 3000 Manuals

DBDELETE [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation


HP Business BASIC/XL Reference Manual

DBDELETE 

The DBDELETE statement deletes a record from a manual master or detail
data set.

The database must be open in mode one, three, or four.  See the DBOPEN
statement for the meaning of these modes.  If mode one is selected, a
covering lock is required.

Syntax 

DBDELETE dbname$, DATASET[=]dataset [, Status[=]status_array(*)]

Parameters 

dbname$          A string variable, whose value is a TurboIMAGE database
                 name.  dbname must be the variable that was passed to a
                 successful DBOPEN.

dataset          A string expression with a maximum length of 16
                 characters.  Its value is the name of a data set.  The
                 name must be left-justified and if shorter than 16
                 characters must be terminated by a semicolon or blank.
                 This parameter can also be an integer or short integer
                 corresponding to the desired dataset number.

status_array     A 10-element short integer array to which TurboIMAGE
                 returns an error code.  If an HP Business BASIC/XL
                 database statement specifies the STATUS option, an error
                 does not abort the program.  Following execution of the
                 database statement the program can check status_array 
                 and handle the error.  The values returned by TurboIMAGE
                 to this array are detailed in the description of the
                 status parameter of the equivalent TurboIMAGE library
                 procedure.

Examples 

     110 DBDELETE Data_base$,DATASET=Data_set$,STATUS=Status(*)
     120 DBDELETE Data_base$,DATASET Data_set$,STATUS Status(*)



MPE/iX 5.0 Documentation