Products Downloads


French version


 

 

ADELIA

      

      

      

      

(I)

 

 

 

 

 

Warning: This instruction is ignored with the C generator.

 

Section for use

INITIALIZATION, VERIFICATION, VALIDATION, TRANSACTION, SFTKYS_PROCESS or any other section, specifying the transaction number.

 

Syntax

COL_SEPARATOR Option SeriesVarId Transaction

 

Option

*ON | *OFF | None

 

 

 

SeriesVarId

SeriesVarId VarId | VarId

 

 

 

Transaction

TransactionNum | None

 

Description

This instruction is used to condition a screen field display. A screen DDS attribute DSPATR(CS) is generated for all variables SeriesVarId indicated after this instruction. The attribute is preceded by an indicator in the display file; this indicator is then activated by the program after the instruction is executed.

 

It is only possible to mention a transaction number TransactionNum if this instruction is used with *ON or *OFF.

 

Whenever this instruction is used without *ON or *OFF, it is deactivated (indicator reset to 0) after each screen reading, as well as by the instructions END_MANAGE_SFL and END_ADD_SFL when placed in a MANAGE_SFL/END_MANAGE_SFL or ADD_SFL/END_ADD_SFL block.

 

When this instruction is used with *ON, it remains activated until executed with *OFF with the same group of variables.

 

Important notes:

    • A variable used with a group of variables must always be used with this same group.
    • For a specific variable, this instruction cannot be used once with *ON or *OFF and another time without *ON or *OFF.


Example

IF   CUSTOMER_VIEW EXISTS

COL_SEPARATOR *ON ZORDER_NBR ZORDER_DATE ZORDER_CUST_CODE

END

*

*

BEGIN_PROCEDURE ENTRYF

*

* this procedure deals with transaction # 3

*

IF   ACTION_CODE = 'DELETE'

COL_SEPARATOR *OFF ZORDER_NBR ZORDER_DATE ZORDER_CUST_COD 03

PROTECT *ON ZORDER_NBR ZORDER_DATE ZORDER_CUST_COD 03

ELSE

COL_SEPARATOR *ON ZORDER_NBR ZORDER_DATE ZORDER_CUST_COD 03

PROTECT *OFF ZORDER_NBR ZORDER_DATE ZORDER_CUST_COD 03

END

END_PROCEDURE

 

See also the list of 4GL instructions by topic

↑ Top of page

  • Aucune étiquette