I. EQUEL/FORMS Examples : Formdata
 
Share this page                  
Formdata
Loops through all fields in the form.
Example--formdata statement:
This 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 simple field"
    end if
## }