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(
	DatabaseObject objItem,
	string strFieldName
)
Visual Basic
Public Function ObjectGetFieldValue ( _
	objItem As DatabaseObject, _
	strFieldName As String _
) As Object
Visual C++
public:
Object^ ObjectGetFieldValue(
	DatabaseObject^ objItem, 
	String^ strFieldName
)

Parameters

objItem
Type: DatabaseObjects..::..DatabaseObject
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.DatabaseObject,System.String)"]

Exceptions

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

See Also