Previous Topic

Next Topic

Book Contents

Book Index

GetScriptOutput - MaxBasic Function

GetScriptOutput :StringList

The GetScriptOutput function retrieves the content of the Print stream and returns it as a StringList object. This allows you to access and manipulate the output of Print commands within your script.

Example Usage:

' Example script demonstrating GetScriptOutput

Print "1"

Print 2

Print "Three"

Dim OutputLog as Object

OutputLog = GetScriptOutput

' Print the content of the Print stream

Print OutputLog.Text

Expected Output:

1

2

Three

Notes: