Adxdlrec

This function returns the number of records processed by the last Delete instruction. It must be called after the Delete instruction.

Syntax

adxdlrec

Example

# This function deletes all the lines for a sales order, and returns the number of lines deleted
Funprog ORDER_DROP_LINES(ORDER_NUM)
Value Char ORDER_NUM()
# Declare the ORDERLINE table
  If clalev([ORDL]) : LogicClose ORDERLINE : Endif : Local File ORDERLINE [ORDL]
# Let's delete the lines
  Delete [ORDL] Where ORDERNUM=ORDER_NUM
End adxdlrec

See also

Delete, adxuprec, adxsqlrec.