...
When declaring lists it is better to declare in reference to an LDM (1 or more LDM if needed).
Bloc de code |
---|
|
/* ___ Variables declarations ___________________________________________________________
REF(A5_COD_ARTICLE) w_COD_ARTICLE_1 /* defining the w_COD_ARTICLE_1 as the A5_COD_ARTICLE
REF(A5_COD_ARTICLE HL_ART_ALCOOL) w_COD_ARTICLE_2 /* defining the w_COD_ARTICLE_2 as the A5_COD_ARTICLE of the HL_ART_ALCOOL LDM
REF(w_COD_ARTICLE_2) w_COD_ARTICLE_3 /* defining the w_COD_ARTICLE_3 as the w_COD_ARTICLE_2 variable
/* ___ Lists declarations _______________________________________________________________
LIST LST_ART_ALC_1 *REF_LDM(HL_ART_ALCOOL) /* defining a list with all the properties of the HL_ART_ALCOOL ldm
LIST LST_ART_ALC_2 *REF_LDM(HL_ART_ALCOOL) *REF_LDM(HL_ART_LANGUE) /* defining a list with all the properties of the HL_ART_ALCOOL ldm and the HL_ART_LANGUE ldm
LIST LST_ART_ALC_3 *REF_LDM(HL_ART_ALCOOL) *REF_LDM(HL_ART_LANGUE) w_COD_ARTICLE_1 /* defining a list with all the properties of the HL_ART_ALCOOL ldm and the HL_ART_LANGUE ldm plus the w_COD_ARTICLE_1 variable |
...
Remarque |
---|
|
If possible, ALPHA variables must be declared in reference to another variable. |
Bloc de code |
---|
|
/* ___ Variables declarations ___________________________________________________________
ALPHA( 35) MyVariable1
ALPHA( 2205) MyVariable2
ALPHA( 5K) MyVariable3
ALPHA( 7M) MyVariable4 |
...
Remarque |
---|
|
If possible, NUM_E variables must be declared in reference to another variable. |
Bloc de code |
---|
|
/* ___ Variables declarations ___________________________________________________________
NUM_E( 8,0) MyNum1 /* 8 digits, 8 for the integer part, 0 for the decimal part
NUM_E( 15,3) MyNum2 /* 15 digits, 12 for the integer part, 3 for the decimal part
NUM_E( 5,5) MyNum3 /* 5 digits, 0 for the integer part, 5 for the decimal part |
...