Gets and returns the field value from the database record associated with the object and collection.

Namespace: DatabaseObjects
Assembly: DatabaseObjects (in DatabaseObjects.dll) Version: 3.8.1.0

Syntax

C#
public Object ObjectGetFieldValue(
	IDatabaseObjects objCollection,
	IDatabaseObject objItem,
	string strFieldName
)
Visual Basic
Public Function ObjectGetFieldValue ( _
	objCollection As IDatabaseObjects, _
	objItem As IDatabaseObject, _
	strFieldName As String _
) As Object
Visual C++
public:
Object^ ObjectGetFieldValue(
	IDatabaseObjects^ objCollection, 
	IDatabaseObject^ objItem, 
	String^ strFieldName
)

Parameters

objCollection
Type: DatabaseObjects..::..IDatabaseObjects
The collection that the object exists within. The function utilises the collection's subset and tablename to determine which table and record to read. Returns DBNull.Value if the field is NULL.
objItem
Type: DatabaseObjects..::..IDatabaseObject
The object which represents the database record to be read. Specifically, the object's distinct field name is used to determine which record to read.
strFieldName
Type: System..::..String
The name of the database field that is to be read.

Return Value

[Missing <returns> documentation for "M:DatabaseObjects.Database.ObjectGetFieldValue(DatabaseObjects.IDatabaseObjects,DatabaseObjects.IDatabaseObject,System.String)"]

Exceptions

ExceptionCondition
DatabaseObjects.Exceptions..::..ObjectDoesNotExistExceptionIf the object has not already been saved.

See Also