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 oDDsendsRequest_DeletetooDD.- Multiple DD arguments recurse left to right.
Request_Deletehonors DD delete options and delegates toDeleteRecord.- 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