Entry points > Module Supervisor > Standard script GACTION 

SELRAP : Quick selection

This entry point is positioned in the subprogram that constitutes the filter that will be applied to the selection. This subprogram is called for each validation of a criteria entry in the columns of the selection box.

Context and operating method

Entry point SELRAP is called after each validation of a criteria entry in the columns of the selection box.
The criteria entered in each column are stored in variable SAIRAP(30)(1...16).
The result of the criteria that will be applied as a filter to Choose is stores in variable CRITRAP(250)(0..1).
The context of process GACTION is available because this subprogram is called by Gosub. For instance, NBCOL contains the number of columns displayed, COL (no column) contains the expression of the displayed column (for instance, [F:ACT]ACTION).

This entry point is used to add up selection criteria of several displays whereas usually, the old criteria were lost after the entry of new criteria.
It is also possible to modify the content of the CRITRAP filter in order to use, for instance, the " symbol (not taken into account in standard mode. In that case, the process is not executed to its end if the GPE variable is positioned to 1.