Skip to content

OUT

OUT appends a line to the text field of an output window.

Syntax

leo-grammar
CC "AdoScript" OUT	winid:strValue text:strValue .

# --> RESULT ecode:intValue .
CC "AdoScript" OUT	winid:strValue text:strValue .

# --> RESULT ecode:intValue .

Parameters

  • winid (strValue) - id of the window, defined by CREATE_OUTPUT_WIN
  • text (strValue) - text to write in the output window

Returns

  • ecode (intValue) - Contains the error code or 0 in case of success.

Details

This command only works if the output window with the winid was already created.

This command just adds to the current string. Line breaks must be done with \n within the string.

See Also

CREATE_OUTPUT_WIN
SET_OUTPUT_WIN_SUBTITLE

Examples

asc
CC "AdoScript" CREATE_OUTPUT_WIN winid:"myWindow" title:"Information Window"
CC "AdoScript" SET_OUTPUT_WIN_SUBTITLE winid:"myWindow" subtitle:"new"
CC "AdoScript" OUT winid:"myWindow" text:"Hello world"
CC "AdoScript" CREATE_OUTPUT_WIN winid:"myWindow" title:"Information Window"
CC "AdoScript" SET_OUTPUT_WIN_SUBTITLE winid:"myWindow" subtitle:"new"
CC "AdoScript" OUT winid:"myWindow" text:"Hello world"

Creates a simple and empty output window with the title 'Information Window'. Afterwards it adds the subtitle 'new' which is also shown in the header of the window. Last but not least, the text 'Hello world' is added to the window.

Versions and Changes

Available since ADOxx 1.3