Was this helpful?
Inittable
Associates a table field with a data set.
Examples--inittable statement:
Example 1:
The following example initializes a table field in read mode, with no hidden columns:
## inittable empform employee read
Example 2:
The following example initializes a table field in the default mode and creates two hidden columns.
## inittable empform employee
## (sal = f4, eno = i2)
Example 3:
The following example sets display mode depending on program mode:
     if (supervisor_mode) then
          mode = "update"
     else
          mode = "read"
     end if
## inittable empform employee mode (eno = i2)
Example 4:
The following example initializes a table field and creates a nullable hidden column:
## inittable empform employee
##   (spouse = varchar(40) with null)
Example 5:
The following example initializes a table field and creates a non-nullable hidden column:
## inittable empform employee
##   (salary = money not null)
Last modified date: 04/03/2024