Unique Property

The Unique property determines, whether the given index is unique.

Applies to objects: Index.

Syntax

[[Let] RetVal = ] object.Unique

[Let] object.Unique = SetVal

The Unique property syntax has these parts:

Part Description
object Required. Ссылка на экземпляр объекта
RetVal Optional. Переменная типа Boolean.
SetVal Required. Переменная типа Boolean.

Remarks

This property can be set only when creating the index. Otherwise modifying this property is ignored.

If the index is unique, it means that the fields it's based on, are different. This guarantees that all operations that use this index will affect exactly the chosen records. Besides, indexing decreases the record search time.

Example

.......

 

See Also

Index Object, Pimary Property.