guiShowDateInput (Function) |
Top Previous Next |
This function shows a dialog that allows the user to enter a date and/or a time. The dialog closes either when the user selects OK or Cancel, or when it times out. Input: message : STRING The message to show to the user
timeout : INT (-1, 0..3600) default -1 The number of seconds without activity before the dialog closes by itself. Use -1 for no timeout.
style : DINT default 3 The style is a mask that determines the type of dialog to show.
A style of 3 will show a dialog with both date and time, while a style of 6 will show a read-only time.
timestamp : DINT Linsec for the initial time/date to show.
Output: timestamp : DINT The entered time and date as a linsec.
Returns: INT
Declaration: FUNCTION guiShowDateInput : INT;
Example: INCLUDE rtcu.inc |