(form "70022" (size 45 6)

  (help "70022_TIP_0")

  (heading "SAVE FORMAT" )

  (label (position  5  3) (text "Save format"))

  (field "format" (position 23  3) (display_length 16)
    (input allowed)
    (translate lower)
    (null disallowed)
    (value_in "database" "string file")
    (max_length 11)
    (default "database")
    (help "70022_TIP_1")
  )
  (field "load_sample_data" (position 16 0) (display_length  1)
    (value_in "Y" "N")
    (input allowed) (translate upper) (null disallowed) (max_length 1)
    (default "N"))

  (field "sample_table_name" (position  16  1) (display_length 13)
    (input allowed) (translate lower) (null disallowed) (max_length 18)
    (format db_charset)
    (dependency (value "load_sample_data") == "Y"))

  (field "sample_prefix" (position  16  2) (display_length 13) 
    (input allowed) (translate none) (null allowed) (max_length 256)
    (default "%ID%-"))

  (label (position  30  2)
    (foreground (user_option "form_text_highlight"))
    (text "(use %ID% as a place holder for the hole Id)"))

  (field "increment_start" (position  16  3) (display_length 13)
    (input allowed) (translate upper) (null allowed) (max_length 256)
    (default "1"))

  (field "padding_length" (position  42  3) (display_length 1)
    (input allowed)(translate none) (null allowed) (max_length 3)
    (format integer_4)
    (default "0"))

  (field "padding_char" (position  60  3) (display_length 1)
    (input allowed) (translate upper) (null allowed) (max_length 1) 
    (default "0"))

  (field "sample_suffix" (position  16  4) (display_length 13)
    (input allowed) (translate none) (null allowed) (max_length 256))

  (label (position  30  4)
    (foreground (user_option "form_text_highlight"))
    (text "(use %ID% as a place holder for the hole Id)"))

  (field "increment_method" (position  16  5) (display_length 13)
    (input allowed) (translate lower) (null disallowed) (max_length 256)
    (value_in "continuous" "reset at each hole")
    (default "continuous"))

  (label (position  1 6 ) 
    (foreground (user_option "form_text_highlight"))
    (text "Sample Id examples"))

  (field "sample_example" (position  16  6) (display_length 47) 
    (background (user_option "form_background"))
    (foreground (user_option "form_text_highlight"))
    (input disallowed) (translate none) (null allowed) (max_length 256)
    (format integer_4))

  (field "sampling_method" (position  16  7) (display_length 13)
    (input allowed) (translate lower) (null disallowed)  (max_length 256)
    (value_in "single sample" "fixed length" "varying lengths")
    (default "single sample"))

  (field "sample_lengths" (position  44  7) (display_length 3)
    (input allowed) (max_length 256) (null allowed)
    (low_bound 0)
    (format range))

  (label (position  50  7)
    (foreground (user_option "form_text_highlight"))
    (text "blank for hole depth"))

  (field "end_sample_method" (position  16  8) (display_length 18)
    (input allowed) (translate lower) (null disallowed)  (max_length 256)
    (value_in "ignore partial sample"
              "include partial sample" 
              "extend to hole length"
              "extend on tolerance"
              "include if min length")
    (default "include partial sample"))

  (field "end_distance" (position  44  8) (display_length 1)
    (input allowed) (null disallowed) (max_length 10)
    (format real_8)
    (low_bound 0)
    (default "0.0"))

  (field "report_file" (position 12 10) (display_length 26) (input allowed)
    (translate lower) (null allowed) (max_length 26)
    (file output (extension trim "reports|*.not"))
    (help "REPORT_FILE_NAME_TIP"))
  (field "report_format" (position 12 10) (display_length 21)
    (input allowed) (null disallowed)
    (value_in ".not - Surpac Note File"
              ".csv - Comma Separated (Spreadsheet)"
              ".htm - Hypertext Markup Language (Web)"
              ".html - Hypertext Markup Language (Web)"
              ".rtf - Rich Text Format (Microsoft Word)"
              ".pdf - Adobe Acrobat"
              ".ps - Postscript"
              ".log - Surpac log file"))

  (default_buttons)
)
