Utility functions / List of utility functions |
Displays an interactive message box containing Yes, No, and Cancel buttons, in a popup window.
FGL_WINQUESTION( title STRING, text STRING, default STRING, buttons STRING, icon STRING, danger SMALLINT ) RETURNING value STRING
The FGL_WINQUESTION() function shows a questiopn to the end user and waits for an answer.
The function returns the label of the button which has been selected by the user.
Supported names for the icon parameter are: "information", "exclamation", "question", "stop".
Setting buttons to another value may result in unpredictable behavior at runtime.
Avoid passing NULL values.
MAIN DEFINE answer STRING LET answer = "yes" WHILE answer = "yes" LET answer = FGL_WINQUESTION( "Procedure", "Would you like to continue ? ", "cancel", "yes|no|cancel", "question", 0) END WHILE IF answer = "cancel" THEN DISPLAY "Canceled." END IF END MAIN