IDatabaseObject_IsSaved As Boolean
This property should return whether the object has been saved to the database. If a new object is saved or an existing object is loaded then this property is automatically set to True by the library. Generally, this is implemented using a private variable that stores the object's saved state.
Private Property Get IDatabaseObject_IsSaved() As Boolean IDatabaseObject_IsSaved = pbIsSaved End Property Private Property Let IDatabaseObject_IsSaved(ByVal RHS As Boolean) pbIsSaved = RHS End Property 'Alternatively, if the object is uniquely identified by an identity or autonumber field then the 'following suffices (the corresponding Property Let IDatabaseObject_IsSaved can be left blank) Private Property Get IDatabaseObject_IsSaved() As Boolean IDatabaseObject_IsSaved = plngID <> 0 End Property
This interface function/property is utilised by the following functions:
Property Let only: Object, ObjectItem, ObjectByKey, ObjectByOrdinal, ObjectsSearch, ObjectFromRecordset, ObjectFromFieldValues. Property Get and Let: ObjectSave. Property Get only: ObjectDelete