Products Downloads


French version


 


ADELIA

VADELIA

SADELIA

WADELIA

EADELIA

(I/B)

(I/B) (C/S)

(B) (S)

(I/B) (C/S)

(B) (C/S)


Warning: In the case of ADELIA programs, this instruction is not compatible with C generator.


Section for use

All


Syntax

DELETE_ELT ListName


Description

This instruction deletes the current element in the list ListName.


Once this instruction has been executed, the current element will become invalid.


The predefined function &CODE_LST on the list indicates whether the deletion was successful.


Below are the possible values:


Value


*INVALID_OP

The deletion failed (current element is invalid).

*NORMAL

The deletion was successful.


Example


Example

DELETE_ELT ItemList


Other example

(VADELIA program)


* Read loop on the list to collect

* all the selected lines

READ_LST PERSO_LST:LIST *SELECT

* send msg to box with reply yes or no

SEND_MSG INF0007 *BOX(*YES_NO, W_REP, 2)

IF W_REP = *BTN_YES

DELETE_SQL PERSONNEL *COND(PE_IDNBR_CODE=:ZZ_IDNBR_CODE)

DELETE_ELT PERSO_LST:LIST

END

*

END_READ_LST


↑ Top of page

  • Aucune étiquette