Comment Property

Gets or sets a String value, that represents a comment or prompt.

Applies to objects: ControlDot

Syntax

[Let] RetVal = object.Comment

[Let] object.Comment = SetVal

The Comment property syntax has these parts:

Part Description
object A reference to an instance of the object.
RetVal A String type variable.
SetVal A String value.

 

Example

This example demonstrates using the Comment property.

Dim MyControlDot as ControlDot, MyShape As Shape
MyShape = thisDoc.ActivePage.DrawRect(50,50,500,500) ' Create a Shape object
MyControlDot = MyShape.AddControlDot()
MyControlDot.X = 100 ' Set coordinates for control handle
MyControlDot.Y = 150
MyControlDot.Comment = "Wise Dot" ' Set prompt
' Inform ConceptDraw engine about changes MyShape.PropertyChanged(CDPT_CONTROL_X)
MyShape.PropertyChanged(CDPT_CONTROL_Y)
MyShape.PropertyChanged(CDPT_CONTROL_COMMENT)