Developer Resources
Console
Overview
The Console class provides a mechanism to control what is displayed in the application's output console. Text can be appended, the console can be shown or hidden, and the text inside the console can be cleared.
Methods
- Console.clear
- Clears the console output
- Console.show
- Shows or hides the form control.
- Console.write
- Outputs text to the console
- Console.writeLine
- Outputs text to the console
Console.clear
- function Console.clear()
Description
Clears all text in the output console
Console.show
- function Console.show(flag : Boolean)
Arguments
- flag
- A flag which indicates whether to show or hide the console.
Description
Shows the console if the flag is true. Hides the console if the flag is false. If flag isn't specified, the console is shown.
Console.write
- function Console.write(text : String)
Arguments
- text
- The string to append to the console output
Description
Outputs the string passed to the text parameter to the console. A new-line is not automatically added.
Console.writeLine
- function Console.writeLine(text : String)
Arguments
- text
- The string to append to the console output
Description
Outputs the string passed to the text parameter to the console. A new-line is automatically added to the string.