Difference between revisions of "DIALOG MESSAGE"
Yvonnemilne (Talk | contribs) |
Helengeorge (Talk | contribs) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
Display a text message in a dialog box | Display a text message in a dialog box | ||
Line 12: | Line 8: | ||
==See Also== | ==See Also== | ||
− | [[@...SAY]], [[DIALOG FIELDS]], [[DIALOG GET]], [[DIALOG QUERY]], [[DIALOG SCOPE]], [[Function Keys]], [[LASTKEY()]], [[MESSAGE]], [[MESSAGEBOX()]], [[SET COLOR]], [[SET COLOR OF]], [[SET DIALOG]], [[SET MESSAGE]] | + | [[@...SAY]], [[DIALOG FIELDS]], [[DIALOG GET]], [[DIALOG QUERY]], [[DIALOG SCOPE]], [[Function Keys]], [[LASTKEY()]], [[MESSAGE]], [[MESSAGEBOX()]], [[SET COLOR]], [[SET COLOR OF]], [[SET DIALOG]], [[SET MESSAGE]], [[SET SHADOW]] |
Line 40: | Line 36: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
+ | [[Category:Screen Dialogs]] | ||
+ | [[Category:Screen Dialogs Commands]] |
Latest revision as of 15:55, 10 November 2009
Purpose
Display a text message in a dialog box
Syntax
DIALOG MESSAGE <expC> [DEFAULT <expN>]
See Also
@...SAY, DIALOG FIELDS, DIALOG GET, DIALOG QUERY, DIALOG SCOPE, Function Keys, LASTKEY(), MESSAGE, MESSAGEBOX(), SET COLOR, SET COLOR OF, SET DIALOG, SET MESSAGE, SET SHADOW
Description
This DIALOG MESSAGE command is used to display the specified text message <expC> in a dialog box centered on the screen. The screen is automatically saved and restored when using the DIALOG MESSAGE command. The SET COLOR and SET COLOR OF DIALOGFRAME commands may be used to specify the colors for the dialog box and frame.
The maximum width of <expC> is 79 characters.
"Yes" and "No" buttons will also be displayed for the user to respond the displayed message. The LASTKEY() function will return 89, which is the ASCII character "Y" if the "Y" or "y" keys were pressed or if the [RETURN] key was pressed on the "Yes" button.
If SET DIALOG is OFF, the message will be displayed in the message line.
DEFAULT <expN>
The DEFAULT clause can be used to set the default button. The default button will be activated when the user hits the [RETURN] key. If DEFAULT 1 is included, or if no DEFAULT clause is included, the 'No' button will be the default. If DEFAULT 2 is included, the 'Yes' button will be the default.
Example
dialog message "Do you want to continue?" default 2 if lastkey() = 89 //... continue else return endif
Products
Recital