You are here: Development Standards > Upgrading OSAS > OSAS 4.5x Upgrade Procedure > Merge New GENINPUT Routine

# Merge New GENINPUT Routine

Programs that use GENINPUT must be checked for these things:

1. GL Period fields should use X3=10.
2. Year fields should use X3=11.
3. Period/Year fields should use X3=12.
4. GL Account Number fields should use X3=13.

Using these parameters in GENINPUT decreases the size of the program you are updating. Remove validity tests that check whether a period or year is valid, and CALLs to GENERROR if a value is invalid. You must still verify a GL account against the GLMAxxx file, however. The GENINPUT CALL only assures that the user uses the correct format for the account number, not that the account exists.

You must also include these GUI components to all GENINPUT assignment lines:

- Add GUI_ID for all GUI control IDs
- Add GUI_RADIO$ for all input fields where a radio group is used

In programs where a control bar is found on the character screen, such as in HLE programs or inquiry programs that allow for cycling through records in a master file, define the two-dimensional array GUI_BUTTON$[ALL] as follows:

- GUI_BUTTON$[X,1] contains the GUI control ID of the buttons as defined in the resource file
- GUI_BUTTON$[X,2] contains the keystroke letter that the user can press to operate the control

When the user chooses graphical mode, all command bar screen commands must be activated by all three of these methods:

- clicking on the button with the mouse
- pressing the ALT key and the underlined letter
- pressing the underlined key on the keyboard (without the ALT key)