fgl_winprompt()
Displays a dialog box containing a field that accepts a value.
Syntax
fgl_winprompt(
x INTEGER,
y INTEGER,
text STRING,
default STRING,
length INTEGER,
type INTEGER )
RETURNS STRING
- x is the column position in characters.
- y is the line position in characters.
- text is the message shown in the box.
- default is the default value.
- length is the maximum length of the input value.
- type is the data type of the return value.
Usage
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.
Example
IMPORT FGL fgldialog
MAIN
DEFINE answer DATE
LET answer = fgl_winprompt( 10, 10, "Today", DATE, 10, 7 )
DISPLAY "Today is " || answer
END MAIN