Contents - Index


MessageDialog (Macro Command)

 

MessageDialog([OK, Cancel], 'message text')

MessageDialog will put up a user-provided message dialog with 1, 2 or 3 buttons.  The button captions (each should be less than 16 characters) are provided in brackets as the first parameter.  For example, [OK, Cancel] will result in a message dialog with two buttons captioned OK and Cancel.  The message text is the second parameter and it can be either a string constant (surrounded by single quotes) or a string variable (ending with a $).  The message text can reference a URL.  The URL name is hot so that clicking on it will start your browser and point it at the specified URL.  Note that backslash \\ characters must be supplied in the URL name rather than the usual // characters.  The dialog will optionally return the button number (1, 2, or 3) if a variable name is assigned to Message dialog in the following manner.  R=MessageDialog([OK, Cancel], 'message text').  In this case R will be set to 1 if the OK button is selected and it will be set to 2 if the Cancel button is selected.

 

Example:

MessageDialog([OK], ''Please visit http:\\fchartsoftware.com.  Press the OK button when you return.')

 

 

MacroCommands