The TextText option changes the text that is displayed in the text. The OptionValue is a text you want displayed.
Note: to use multiple lines of text, separate the lines with the vbCrLf string.
Syntax
object.Construct(“CreateModule”)
object.Option(“Type”, “Text”)
object.Do() or object.DoOnce()
object.Construct(“ModifyModule”)
object.Option(“Module”, “Text”)
object.Option(“TextText”, “OptionValue”)
object.Do() or object.DoOnce()
Example 1
This example shows how to change the text that is displayed in the text.
'Change the text that is displayed in the text to two lines of text
CommandApi.Construct ("ModifyModule")
CommandApi.Option ("Module", "Text")
CommandApi.Option ("TextText", "text in the map coordinates")
CommandApi.Do()
Example 2
This example shows how to change the text that is displayed in the text to two lines of text.
CommandApi.Construct ("ModifyModule")
CommandApi.Option ("Module", "Text")
CommandApi.Option ("TextText", "text in the map coordinates" + vbCrLf + "Multiple lines")
CommandApi.Do()
Used by: Text module
See Also