How Table Fields Can Be Used in an Application
There are three steps involved in managing a table field:
1. Initialize the table field using the inittable statement. This statement associates the table field with a data set.
2. Load values into the data set using the loadtable statement. After values are loaded and the form is displayed, the runtime user can browse and update the values. The loadtable statement loads values.
3. Unload values from the data set into program variables, using the unloadtable statement. The unloadtable statement sets up a loop that unloads values in the data set one row at a time, and executes a block of code for each row.
If your application starts with an empty data set, Step 2 is not required. If the table field is display-only, Step 3 is not required.
Last modified date: 08/28/2024