Versions
All

Purpose
To delete records.

Syntax
Code:
$L.success.flag=rtecall("rdelete", $L.rc, $L.filevar)
  • $L.success.flag
    Indicates if the function was successfull
  • $L.rc
    returncode of the call
    -4 Record has been modified
    -5 Record has been deleted
    -6 Trigger error
  • $L.filevar
    the file handle containing the record to be deleted

Example
Code:
$L.success.flag=rtecall("rinit", $L.return.code, $L.filevar, "operator") 
$L.query="name=\"falcon\"" 
$L.success.flag=rtecall("select", $L.return.code, $L.filevar, $L.query) 
$L.success.flag=rtecall("rdelete", $L.return.code, $L.filevar)
This example selects the falcon record and deletes it. ops: