Sets the field value for the database record associated with this object.

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

Syntax

C#
protected void SetFieldValue(
	string strFieldName,
	Object objNewValue
)
Visual Basic
Protected Sub SetFieldValue ( _
	strFieldName As String, _
	objNewValue As Object _
)
Visual C++
protected:
void SetFieldValue(
	String^ strFieldName, 
	Object^ objNewValue
)

Parameters

strFieldName
Type: System..::..String
The name of the database field that is to be set. Must be a field in the table associated with this object's record.
objNewValue
Type: System..::..Object
The new value that the database field it to be set to. If Nothing/null then the field is set to NULL.

Exceptions

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

See Also