I. EQUEL/FORMS Examples : Tabledata
 
Share this page                  
Tabledata
Steps through the columns in a table field.
Example--tabledata statement:
The following example loops through a form, printing out all field and column names:
## formdata formname
## {
##  inquire_frs field "" (fldname = name, istable = table)
    if (istable = 1) then
         print fldname, " is a table field"
##       tabledata
##       {
##            inquire_frs column "" "" (colname = name)
              print colname, " is a column"
##       }
    else
         print fldname, " is a regular field"
    end if
## }