About edit styles
238 DataWindow .NET
Time keyword
You can use the following keyword as a time display format to specify the
format specified in the Windows control panel:
•
[Time]
Examples
Table 8-7 shows how the time 9:45:33:234567 PM displays when different
format masks are applied.
Table 8-7: Time display format examples
About edit styles
You can define edit styles for columns. Edit styles specify how column data is
presented in DataWindow objects. Unlike display formats, edit styles do not
only affect the display of data; they also affect how users interact with the data
at runtime. Once you define an edit style, it can be used by any column of the
appropriate datatype in the database.
When edit styles are
used
If both a display format and an edit style have been assigned to a column, the
edit style is always used, with one exception. When you assign an EditMask
edit style to a column, you can check the Use Format check box on the Format
property page for the column to use the edit mask format when focus is on the
column, and the display format mask when focus is off the column.
Format Displays
h:mm AM/PM 9:45 PM
hh:mm A/P 09:45 P
h:mm:ss am/pm 9:45:33 pm
h:mm 21:45
h:mm:ss 21:45:33
h:mm:ss:f 21:45:33:2
h:mm:ss:fff 21:45:33:234
h:mm:ss:ffffff 21:45:33:234567
m/d/yy h:mm 1/30/98 21:45