Skip to content

MSGWIN

MSGWIN displays a message window containing some text.

Syntax

leo-grammar
CC "AdoScript" MSGWIN strValue

CC "AdoScript" MSGWIN hide
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.

Don't forget to close the messagewindow again! 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

asc
FOR i from:1 to:50000 {
   CC "AdoScript" MSGWIN ("Important message. Counting up to 50000: " + STR i)
}
CC "AdoScript" MSGWIN hide
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:

MSGWI

Versions and Changes

Available since ADOxx 1.3