ArcPad Scripting Object Model
Print Method
See Also  Example  Send comments on this topic.
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 : Print Method

Glossary Item Box

Description

Prints the specified text to the Console window.

Syntax

object.Print ( Text [,Color] [,BackgroundColor] )

Parameters

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.

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

See Also

© 2013 All Rights Reserved.