Utility functions / Common dialog utility functions (IMPORT FGL fgldialog) |
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.
IMPORT FGL fgldialog MAIN DEFINE answer DATE LET answer = fgl_winprompt( 10, 10, "Today", DATE, 10, 7 ) DISPLAY "Today is " || answer END MAIN