(form "10090" (size 65 18)
    (heading "DATABASE FIELD MATHS")

    (label
        (position 2 3)
        (text "Table name")
    )

    (field "table_name"
        (position 12 3)
        (display_length 20)
        (max_length 40)
        (input allowed)
        (null disallowed)
        )

    (scroll_block "expr"
        (position 2 6)
        (size 60 4)
        (extra 0 1)
        (scroll_size 60 20)
        (repeat interactive
            (grow 0 1)
            (instances 1
                (min 1)
                (max 50)
            )
        )
        (top
          (label
              (position 1 0)
              (text "Result field")
          )
          (label
              (position 14 0)
              (text "Expression")
          )
        )
        (main
          (field "result_field"
              (position 1 0)
              (display_length 10)
              (max_length 40)
              (input allowed)
              (null disallowed)
              )
          (field "expression"
              (position 14 0)
              (display_length 45)
              (max_length 512)
              (input allowed)
              (null disallowed)
              )
        )
    )


    (scroll_block "fields"
        (position 2 13)
        (size 60 3)
        (extra 0 1)
        (scroll_size 60 20)
        (repeat interactive
            (grow 0 0)
            (instances 0
                (min 1)
                (max 50)
            )
        )
        (top
            (label
                (position 1 0)
                (text "Fields available for use in expressions")
            )
        )
        (main
            (field "col1"
                (position 1 0)
                (display_length 14)
                (background)
                (max_length 30)
                (input disallowed)
                (auto_next off)
            )
            (field "col2"
                (position 15 0)
                (display_length 14)
                (background)
                (max_length 30)
                (input disallowed)
                (auto_next off)
            )
            (field "col3"
                (position 30 0)
                (display_length 14)
                (background)
                (max_length 30)
                (input disallowed)
                (auto_next off)
            )
            (field "col0"
                (position 45 0)
                (display_length 14)
                (background)
                (max_length 30)
                (input disallowed)
                (auto_next off)
            )
        )
    )

    (field "continueOnError"
        (position 1 0)
        (display_length 10)
        (max_length 40)
        (input allowed)
        (default "N")
    )
    (field "errorMessages"
        (position 1 0)
        (display_length 10)
        (max_length 40)
        (input allowed)
        (default "Y")
    )


    (default_buttons)
)
