The initial declaration of the variables necessary to the management of the grid is made by the line :
Gosub DECLARE From TABLEAUX
In order that the default management of classes is correctly carried out between the header and the line detail, it is necessary to insert in this action the following instruction (if XXX is the abbreviation of the header table) :
Default File [XXX]
To correctly assign the UPDFLG and CREFLG fields, it is necessary to insert in this action the following instruction:
Gosub LIENS From TABLEAUX
To create all the lines, in document creation, it is necessary to insert in this action the following instruction :
Gosub CREATION From TABLEAUX
To create, modify or delete the lines, in document modification, it is necessary to insert in this action the following instruction : :
Gosub MODIF From TABLEAUX
To delete all the lines, in document deletion, it is necessary to insert in this action the following instruction :
Gosub ANNULE From TABLEAUX
It is necessary to repeat the call to the sub-programme LIENS :
Gosub LIENS From TABLEAUX