TimeSpanInput (FPScript)

21.09.2021

Opens a dialog box for entering a time span.

Syntax

TimeSpanInput(Title)

 

The syntax of the TimeSpanInput 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.

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

Remarks

As the result the function returns a scalar value of data type time span.

The function interprets the user input as a time span that can be entered using the format Days:Hours:Minutes:Seconds or Hours:Minutes:Seconds. The user can omit the elements starting from the right. Missing components are assumed to be zero. If the input consists of four elements, then this is always interpreted as Days:Hours:Minutes:Seconds. The element Second can be specified with fractional digits.

Available in

FlexPro Basic, Professional, Developer Suite

Examples

TimeSpanInput("Please enter a time span (D:H:M:S)")

Opens a dialog box with the title "Please enter a time span (D:H:M:S)".

See Also

ChooseFile Function

Input Function

TextInput Function

TimeInput Function

MessageBox Function

Share article or send as email:

You might be interested in these articles