Description:
Displays the PowerMessage messagebox to the user. View the implementation section for more details.
Syntax:
messagebox (string as_title, string as_message)
messagebox (string as_title, string as_message, button a_buttons)
messagebox (string as_title, string as_message, button a_buttons, integer ai_default)
messagebox (string as_title, string as_message, button a_buttons, integer ai_default, integer ai_timeout)
Argument |
Description |
as_tile |
A string specifying the title of the message box. |
as_message |
The text you want to display in the message box. |
a_button (optional) |
A value of the Button enumerated datatype indicating the set of CommandButtons you want to display at the bottom of the message box. The buttons are numbered in the order listed in the enumerated datatype. Values are: •OK! - (Default) OK button •OKCancel! - OK and Cancel buttons •YesNo! - Yes and No buttons •YesNoCancel! - Yes, No, and Cancel buttons •RetryCancel! - Retry and Cancel buttons •AbortRetryIgnore! - Abort, Retry, and Ignore buttons |
ai_default (optional) |
The number of the button you want to be the default button. The default is 1. |
ai_timeout (optional) |
The number of seconds to keep the message visible. After the timeout period elapses, the messagebox will close. Omit this parameter to keep the messagebox open until the user has clicked a button. |
Return Value:
Integer. Returns the number of the selected button (1, 2, or 3)
Usage:
Copyright © 2021 Werysoft Inc.