ADXDLREC

Contents


adxdlrec determines the number of records deleted by a Delete instruction.

 

Class, Type, and Dimension

[S]adxdlrec Integer

 

Examples

   # Extracted from a process that deletes selected records
 # depending on the first part of a multiple key
    Delete [FAK]NUMFAC(1) = CODE_FACTURE
  If fstat = 0
     Errbox "A user deleted "-num$(adxdlrec)-" records"
  Endif
   # Other process 
    BOUM File
  Delete [BOUM] Where CODCLE > ""
  Infbox "There were "-num$(adxdlrec)-"records in your file",
  & "considering the count method...",
  & "there aren't any more, now!"

 

Description and Comments

The adxdlrec variable contains the number of records deleted in a table by the Delete instruction.

 

Remarks

The 'Delete class' syntax (with neither key value nor read mode) means that you are trying to delete the current record; in this case, adxdlrec equals either zero (0) or one (1).

On the other hand, if you specify a read mode in the Delete instruction and if records corresponding to the read mode are deleted, then the adxdlrec number is significant as long as fstat is null (i.e., if at least one record could be deleted).

 

Associated Errors

No associated error

 

Associated Keywords

FILE - DELETE - FSTAT


CONTENTS


Copyright © Sage 1999 - 2007