Skip to content

SET_OUT_MAX_LINE_COUNT ​

SET_OUT_MAX_LINE_COUNT sets the maximum line count of output text fields (OUT). If more than the specified number of lines are appended, lines are deleted from the beginning to keep the maximum line count.

Syntax ​

leo-grammar
CC "AdoScript" SET_OUT_MAX_LINE_COUNT intValue

# --> RESULT ecode:intValue .
CC "AdoScript" SET_OUT_MAX_LINE_COUNT intValue

# --> RESULT ecode:intValue .

Parameters ​

  • <main-parameter> (intValue) - sets maximum line count (integer)

Returns ​

  • ecode (intValue) - error code if an error occurred or 0 otherwise.

Details ​

If a limit is set, new lines can be written in the output window, but then the first lines are removed from the window.

See Also ​

CREATE_OUTPUT_WIN
OUT

Examples ​

asc
CC "AdoScript" debug SET_OUT_MAX_LINE_COUNT 8
CC "AdoScript" CREATE_OUTPUT_WIN winid:"myWindow" title:"Information Window"
FOR i from:0 to:11 {
  CC "AdoScript" OUT winid:"myWindow" text:("Hello world "+ STR i+"\n")
}
CC "AdoScript" debug SET_OUT_MAX_LINE_COUNT 8
CC "AdoScript" CREATE_OUTPUT_WIN winid:"myWindow" title:"Information Window"
FOR i from:0 to:11 {
  CC "AdoScript" OUT winid:"myWindow" text:("Hello world "+ STR i+"\n")
}

Creates an output window with a max of 8 lines, and writes then 12 lines in it. Afterwards you will not be able to see line 0 til 4 in the output window.

Versions and Changes ​

Available since ADOxx 1.3