(form "20604"
    (size 35 18)
    (help "20604_TIP_0")
    (heading "IMPORT FROM TEXT FILE"
    )

    (label
        (position 2 3)
        (text "Text file name"
        )
    )
    (field "in_fname"
        (position 14 3)
        (display_length 15)
        (max_length "FIO_MAX_FILENAME_LENGTH")
        (input allowed)
        (translate lower)
        (null disallowed)
        (file input)
        (help "20604_TIP_1")
    )

    (label
        (position 2 5)
        (text "Output to string file"
        )
    )

    (label
        (position 5 6)
        (text "Location"
        )
    )
    (field "loc"
        (position 13 6)
        (display_length 15)
        (input allowed)
        (null disallowed)
        (translate lower)
        (max_length "FIO_MAX_FILENAME_LENGTH")
        (file output  
            (link "id")
            (extension "*.str")
        )
        (help "20604_TIP_2")
    )

    (label
        (position 5 7)
        (text "Id"
        )
    )
    (field "id"
        (position 13 7)
        (display_length 10)
        (max_length 15)
        (input allowed)
        (null disallowed)
        (format real_8)
        (default "1")
        (help "20604_TIP_3")
    )

    (label
        (position 5 8)
        (text "String No."
        )
    )
    (field "str_no"
        (position 13 8)
        (display_length 10)
        (max_length 15)
        (input allowed)
        (null disallowed)
        (format integer_4)
        (default "1")
        (help "20604_TIP_4")
    )

    (label
        (position 2 10)
        (text "Number of header lines"
        )
    )
    (field "num_hdrs"
        (position 24 10)
        (display_length 5)
        (format integer_4)
        (low_bound 0)
        (default "0")
        (input allowed)
        (null disallowed)
        (help "20604_TIP_5")
    )

    (label
        (position 2 11)
        (text "Number of description fields"
        )
    )
    (field "num_desc"
        (position 24 11)
        (display_length 5)
        (format integer_4)
        (low_bound 0)
        (high_bound 100)
        (default "0")
        (input allowed)
        (null disallowed)
        (help "20604_TIP_6")
    )

    (label
        (position 2 13)
        (text   "Delimited?"
        )
    )
    (field "delimited"
        (position 11 13)
        (display_length 1)
        (input allowed)
        (translate upper)
        (value_in "Y" "N")
        (default "N")
        (help "20604_TIP_7")
    )

    (label
        (position 20 13)
        (text "Delimiter"
        )
    )
    (field "delimiter"
        (position 28 13)
        (display_length 1)
        (input allowed)
        (dependency (value "delimited") == "Y")
        (default ",")
        (help "20604_TIP_8")
    )

    (label
        (position 2 15)
        (text "Log file name"
        )
    )
    (field "log_fname"
        (position 14 15)
        (display_length 15)
        (max_length 256)
        (input allowed)
        (translate lower)
        (default "err")
        (file output
            (extension "*.log")
        )
        (help "20604_TIP_9")
    )

    (default_buttons)
)
