Comment Property

Applies To   See Also

Stores information about an object. Available at design time and run time.

Syntax

Object.Comment[ = cTextString]

Settings

cTextString

Specifies a text string.

Remarks

Unlike other properties, the value of the Comment property is not used by Visual FoxPro; you can use this property to identify or describe objects.

You can use this property to assign an identification string to an object without affecting any of its other property settings. The Comment property is useful for checking the identity of a control or form that is passed as a variable to a procedure.

By default, the Comment property is set to a zero-length string ("").

Tip   When you create a new instance of a form, assign a unique value to the Comment property.