TextMustBeUnique Property

Specifies whether text for choices available between design-time controls can be the same.

Syntax

object.TextMustBeUnique [= fUnique]

Parameter

Object

DTC object

fUnique

Boolean value. If True, text property for available choices must be different. If False, text property for available choices can be the same.

Remarks

Use this property to detect collisions between choice names. The Choices engine does not prevent collisions, but alerts DTCs to the conflict. Your DTC needs to include handlers for resolving conflicts. Only choices available at the time are compared, not all choices that are published in the document. That means that only the filtered choices are compared.

When TextMustBeUnique is set to True and another Choice object has the same value for its Text property, the Choices engine calls the OnChoiceConflict Method on the control that introduced the choice. Your control may choose to adjust the Text property to resolve the conflict.

Applies to   Choice object