You are here: Development Standards > Routines > General Routines > GENADDL.PUB

# GENADDL.PUB

GENADDL.PUB is a public program that allows the user to enter lines of descriptions. Unless specified, 10 lines of 35 characters each are returned to the calling program. You may use this program anywhere you need to prompt for additional descriptions.

Starting at version 7.5, the entry generated by GENADDL.PUB performs word-wrapping. The text returned to the calling program continues to be array-based, so the file structure that stores the descriptions does not need to change.

`0090 ENTER SAVE_XT$[ALL],STARTX,STARTY,TASK$,START_LINE,OSGUI$,WINROWS,WINCOLS,TITLE$`

Variable | Description
SAVE_XT$[1:10] | Array that holds additional descriptions. Array must be pre-dimensioned and populated with descriptions before calling program.
STARTX | X1 coordinate used by GENINPUT.PUB to enter line items.
STARTY | X0 coordinate used by GENINPUT.PUB to enter line items.
TASK$ | Returns “U” if user used the Up command from the first line of descriptions.
START_LINE | Line on which to begin entering additional descriptions.
OSGUI$ | GUI template (see GENGURES.PUB on page 3-50 for more detail).
WINROWS | Number of rows to display in the window. Defaults to 10 if not set.
WINCOLS | Number of rows to display in the window. Defaults to 35 if not set.
TITLE$ | Sets title on pop-up box.

Exit Points | Explanation
EXIT | GENADDL.PUB does not return any errors.