Products Downloads


French version


 


ADELIA

VADELIA

SADELIA

WADELIA

EADELIA

(I/B)

(I/B)

(B)

(I/B)

(B)


Warning: In the case of ADELIA programs, this function is not compatible with C generator and cannot be used on an index.


Description

Used to return a return code matching the last operation performed on a given list or index.


Syntax

Result = &CODE_LST(List name)


Parameters


Description

Contents

Controls

Result

NUM_E or NUM_P type variable of length <= 9 with 0 decimals.

Possible values:

0 = *NORMAL

100 = *NOT_FOUND

-1 = *INVALID_OP

-2 = *LST_NOT_COMPAT

-3 = *LST_NOT_EXTERN


List name

LIST or Index type graphical variable or property.

Name of the list or index for which the return code of the last operation is looked for.

Mandatory parameter.


Note: In the case of an index, the value -1 (*INVALID_OP) means that the index does not exist (or that it has been destroyed). This may occur if you perform a READ_NX_ELT or READ_PR_ELT without first performing a READ_ELT, READ_F_ELT or READ_L_ELT.


Example

RET_CODE = &CODE_LST(ITEM_LST:LIST)

IF RET_CODE = *NORMAL

...


IF &CODE_LST(LIST) = *NORMAL

...

RET_CODE = &CODE_LST(MyIndex)

IF RET_CODE (MyIndex) = *NORMAL


List of predefined functions by topic


↑ Top of page

  • Aucune étiquette