Utility functions / List of utility functions |
Displays a dialog box containing a field that accepts a value.
FGL_WINPROMPT( x INTEGER, y INTEGER, text STRING, default STRING, length INTEGER, type INTEGER ) RETURNING value STRING
The FGL_WINPROMPT() function allows the end user to enter a value.
This function is provided for backward compatibility, you can also use your own input dialog with a customized form to get a value from the user. Or use the standard PROMPT instruction.
Possible values for the type parameter are: 0=CHAR, 1=SMALLINT, 2=INTEGER, 7=DATE, 255=invisible
Avoid passing NULL values.
MAIN DEFINE answer DATE LET answer = FGL_WINPROMPT( 10, 10, "Today", DATE, 10, 7 ) DISPLAY "Today is " || answer END MAIN