Skip to content

Delete command

Include: Use Db\DBCommands.pkg

Purpose

Deletes the current record for one or more DDs through command syntax.

Syntax

Delete oDataDictionary
Delete oFirstDD oSecondDD

How it works

  • Delete oDD sends Request_Delete to oDD.
  • Multiple DD arguments recurse left to right.
  • Request_Delete honors DD delete options and delegates to DeleteRecord.
  • On successful delete, the DD no longer has a current record; field values may remain visible in the local buffer.

Example

Clear oCustomerDD
Move "Data Access" to oCustomerDD.Name
Find EQ oCustomerDD.Name
If (Found) Begin
    Delete oCustomerDD
End

See also