WinStudio

TIME Keyword

Applies To

Form components with the data type DATE.

Property defaults with the data type DATE.

Component properties: Data type and format.

Description

Specifies that the value of a component with the DATE data type consists only of a time of day.

Syntax

TIME( )

Remarks

A component with the DATE data type can parse, validate, and display both date and time user input. The TIME keyword specifies that the component contains only a time of day. With TIME specified, the value of a component returned by a script is a time, although the property to which the component is bound may contain both a date and a time.

The keyword can serve as a parameter of the DEFAULTFORMAT keyword in data-type specifications. See DEFAULTFORMAT, DATE, and DATETIME in Related Topics.

Example

With the following data-type specification, a component displays only a time, and it parses and validates only the time portion of user input.

DATATYPE(DATE) DEFAULTFORMAT(TIME())


Related Topics

AUTOIME Keyword

BACKCOLOR Keyword

BLOBFORMAT Keyword

COMMA Keyword

COMMAS Keyword

DATE Keyword

DATETIME Keyword

DECIMAL Keyword

DECIMALPOINT Keyword

DEFAULTFORMAT Keyword

FONT Keyword

FORECOLOR Keyword

JUSTIFY Keyword

MASK Keyword

TRUNCATEDECIMAL Keyword