TimeInput (FPScript)

21.09.2021

Opens a dialog box for entering a date and time.

Syntax

TimeInput(Title)

 

The syntax of the TimeInput function consists of the following parts:

Part

Description

Title

String with a title for the dialog box.

Permitted data structures are scalar value. Supported data types are string.

Remarks

The function interprets the user input as local time, which must be entered in the format set up in Windows Control Panel, e. g. Month/Day/Year Hour:Minute:Second. The user does not have to specify all of the elements of the time. Missing elements are completed by the current system date. The element Second can be specified with fractional digits.

The function returns as the result the scalar value of calendar time data type corresponding to the time entered. If an invalid date is entered, such as a date before 1/1/1970, then the function returns a void calendar time value.

If an argument is a list, then the first element in the list is taken. If this is also a list, then the process is repeated.

Available in

FlexPro Basic, Professional, Developer Suite

Examples

TimeInput("Date And Time")

Opens a dialog box titled "Date And Time". Valid entry would be, for instance, "10/24/2004 12:30" or "10/24/04 12:30:45.7"

See Also

ChooseFile Function

Input Function

TextInput Function

TimeSpanInput Function

MessageBox Function

Share article or send as email:

You might be interested in these articles