Database Objects
Hi-Integrity Systems
HomeVB6 Documentation › IDatabaseObject.DistinctValue


IDatabaseObject_DistinctValue As Variant

This property should return the distinct value that uniquely identifies this object in the database. If a new object is saved or an existing object is loaded then this property is automatically set by the library. Typically, this is the value of an identity or auto increment database field.

Private Property Get IDatabaseObject_DistinctValue() As Variant IDatabaseObject_DistinctValue = plngID End Property Private Property Let IDatabaseObject_DistinctValue(ByVal RHS As Variant) plngID = RHS End Property

This interface function/property is utilised by the following functions:
Object, ObjectSave, ObjectItem, ObjectByKey, ObjectByOrdinal, ObjectDelete, ObjectsSearch, ObjectDistinctValue, ObjectFromRecordset, ObjectFromFieldValues