skip to main content

Controls Reference : ENTRY-FIELD : Properties : Format-String

Format-String
This property is used in conjunction with the Fill-Char property to assign a special format to an entry-field. The entry-field value is immediately formatted while the user is typing.
The following special characters can be used to define the format:
All characters described above can be combined to define complex formatting strings.
"###-?????-###" would define a string that must be three digits, five letters and three digits, separated by dashes.
Note that the value of the field for the program will be stripped of separator characters. For example, having the format string ##/##/##, the user types "101217" and sees "10/12/17", but the program will receive only "101217".
 
Example - Define an entry-field control with a fill char of underscores and a format-string
screen section.
  03 screen-1-ef-2 Entry-Field
     line 29.0
     column 49.5
     size 13.1 cells 
     lines 4.6 cells 
     fill-char '_'
     format-string "###-?????-###"

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left