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

# GENGOTO.PUB

GENGOTO.PUB is a public program that pops up a box and prompts the user for a string or numeric value. Generally this is used when prompting for go-to boxes within HLEs, when more than one screen of information is displayed. However, because there is no logic to control the HLE, this can be used generically for any type of special prompting where necessary.

For a more detailed definition of the variables used in GENGOTO.PUB, see the section on GENINPUT, GENINPUT.PUB, or GENGUINP.PUB.

`0060 ENTER Y$,STARTX,STARTY,X2,X3,X4,X9,X1$,X,X$,WINDID$,SELVAL$,COMPID$,`
`0060:FILE[ALL],YDISABLE$,PGM$,FLD_HLP$,OSGUI$,BUTTON_KEYS$[ALL],PROMPT$,`
`0060:TEXT_COLOR`

Variable | Description
Y$...PGM$ | See GENINPUT.PUB variable definitions
OSGUI$ | GUI template (see GENGURES.PUB for more detail)
BUTTON_KEYS$[ALL] | Array for button ID’s and the characters to which they tie
PROMPT | Prompt to display in front of the entry box
TEXT_COLOR | Character mode color level at which to display the box

Exit Points | Explanation
EXIT | GENGOTO.PUB does not normally return an error.