SET_COUNT( )

The SET_COUNT( ) function specifies the number of records that contain data in a program array.

4GLREF00000099.gif

Before you use an INPUT ARRAY WITHOUT DEFAULTS or a DISPLAY ARRAY statement, you must call the SET_COUNT( ) function with an integer argument to specify the total number of records in the program array. In typical applications, these records contain retrieved values from the database.

The SET_COUNT( ) built-in function sets an initial value from which the ARR_COUNT( ) function determines the total number of members in an array. If you do not explicitly call ARR_COUNT( ), a default value of zero is assigned.

References

ARR_COUNT( )

ARR_CURR( )