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


IDatabaseObject_Load(ByVal objFields As SQLFieldValues)

This subroutine should copy the database fields from objFields to the object's variables. objFields is populated with all of the fields from the associated record.

Private Sub IDatabaseObject_Load(ByVal objFields As Dbo.SQLFieldValues) 'Copy the fields from the products table into the object's variables pstrName = objFields("ProductName") pcurUnitPrice = objFields("UnitPrice") pintUnitsOnOrder = objFields("UnitsOnOrder") End Sub

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