Setting the Format to Use for Time Fields

You can also change the time format for any particular field so that it is different from the system date format.

Designer: The time format used by the field is specified in the "Data Field Basic Information" dialog box. See the Designer User's Guide for more information.

Code: To set the time format of a particular time field, call the set field time format function, sf_timefmt():

void sf_timefmt(format_stp, dfldp)

UCHAR *format_stp;            /* Pointer to format string            */

DFIELDPTR dfldp;                /* Pointer to a time field            */

When the string that the user has entered in the time field is converted to the time format specified for the field, spaces are replaced with the time pad character. By default, the time pad character is '0'. You can change the time pad character with the function se_timepadch().


Home Contents Previous Next