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, and cannot be used on an index.


Section for use

All


Syntax

READ_L_ELT ListName

READ_L_ELT IndexName


Description

When this instruction applies to an index, it reads the last element in the list ListName and assigns the values to its variables.

After running this instruction, the current item is the read item.


Below are the possible values:


Value


*NOT_FOUND

The read did not find the item (empty list).

*NORMAL

The read was successful.


Example

READ_L_ELT CUSTOMER_LST

* reads the last element in the list CUSTOMER_LST (VADELIA or WADELIA programs)


READ_L_ELT INVOICE_LST:LIST
* reads the last element in the graphical list INVOICE_LST


* Read index

LIST MyList Field1 Field2

LIST_INDEX MyIndex MyList Field1

*/ The list contains 4 items with the following values for Field1: 10, 2, 5 and 7


READ_L_ELT MyIndex

* Reads the list item with Field1 equal to 10


↑ Top of page

  • Aucune étiquette