MSGWIN ​
MSGWIN displays a message window containing some text.
Syntax ​
CC "AdoScript" MSGWIN strValue
CC "AdoScript" MSGWIN hide
Parameters ​
<main-parameter>
(strValue) - the text shown in the message window (string)hide
(modifier) - hides the messagewindow
Returns ​
none
Details ​
When displaying the message window, the execution of AdoScript does not stop but is continued. The message window can be hidden again by another call of MSGWIN with the argument hide.
It is recommend to always close the message window in the script where it is opened. If not the massage window will close, once the script is finished. If the message window is still open after the AdoScript finished executing, the user can not work with ADOxx until it is restarted because the message window blocks all the mouse and keyboard inputs.
You can set text with more than one line by separating each line with a '\n'.
See Also: ​
Examples ​
FOR i from:1 to:50000 {
CC "AdoScript" MSGWIN ("Important message. Counting up to 50000: " + STR i)
}
CC "AdoScript" MSGWIN hide
Opens the message window with the text "Important message". Then some time consuming computations would take place. In the example we just open an info box so that the user has time to read the message in the message window. After the info box is closed, the message window is again hidden:
Versions and Changes ​
Available since ADOxx 1.3