Prints the specified text to the Console window.
object.Print ( Text [,Color] [,BackgroundColor] ) |
- Text
- Required. A String that represents the text to write.
- Color
- Optional. An OLE_COLOR that specifies the text color.
- BackgroundColor
- Optional. An OLE_COLOR that specifies the background text color.
- Console Object Example
- Execute Example
- OpenLayer Example
Displays the Console window and writes some text to it.
Console Object Example (VBScript) | Copy Code |
---|---|
Sub WriteToConsole Console.Visible = True Console.DebugFlags = 3 Console.Caption = "My Output" Console.Color = apGreen Console.BackgroundColor = apYellow Console.Clear Console.Print "This is the console window", apBlue, apRed Console.Print "Here is another message" End Sub |