(form "00800" (size 61 21)
  (help "FRM00800_HELP")
  (heading "CHOOSE OPTIONAL TABLES FOR NEW DATABASE")
  (label (position  2  3)(text "Database Name"))
  (field "dbname" (position 16  3) (display_length 10)
  (background) (input disallowed))

  (label (position 32  3) (text "Database Type"))
  (field "dbtyp" (position 47  3) (display_length  8)
  (background) (input disallowed))

  (label (position  2  4) (text "MANDATORY_SURVEY_TABLES"))

  (label (position  2  7) 
    (text "Create a station errors table?"))
  (field "err_table" (position 28  7) 
    (display_length  1) (input allowed)
    (value_in "Y" "N")
    (default "N") (translate upper) (max_length 1)
    (help "FRM00800_ERRTAB_HELP"))

  (field "err_defaults_label" 
    (position 2  8) 
    (display_length  47) 
    (foreground (user_option "form_foreground"))
    (background (user_option "form_background"))
    (input disallowed)
    (value_in "FRM_00867_LABEL")
    (browser none)
    (default "FRM_00867_LABEL")
    (dependency (value "err_table") == "Y") 
  )
  (field "err_defaults" (position 28  8) 
     (display_length  1) (input allowed)
     (value_in "Y" "N")
     (default "N") 
     (dependency (value "err_table") == "Y")
     (translate upper) (max_length 1)
     (help ""))

  (label (position  2  9) 
  (text "FRM00800_ERR_DEFAULTS_TEXT"))

  (scroll_block (position  3  12) (size 49  6)
     (extra  0  1)
     (scroll_size 49 47)
     (repeat interactive (grow  0  1) (instances  1 (min  1) (max 47)))
    (main)
    (top
        (label (position  1  0) 
            (text "Table name"
            )
        )
        (label (position 15  0) 
            (text "Table type"
            )
        )
        (label (position 28  0) 
            (text "Time dependent"
            )
        )
    )
    (main
      (field "table_name" (position  1  0) (display_length 10) (input allowed)
        (max_length 18)
        (translate lower) (format db_charset) (null allowed)
        (help "00800_TIP_1"))
      (field "table_type" (position 15  0) (display_length  8) (input allowed)
        (value_in "prism")
        (default "prism") (translate lower) (null allowed) (max_length 8)
        (help "00800_TIP_2"))
      (field "time_dependent" (position 28  0) 
        (display_length  1) (input allowed)
        (value_in "Y" "N")
        (default "Y") (translate upper) (null allowed) (max_length 1)
        (help "00800_TIP_3"))
     )
  )
  (default_buttons)
)
