Partager via


xRecord.setFieldValue Method

Definition

Overloads

setFieldValue(String, Object)

Sets the field value in the record buffer.

setFieldValue(String, Object, Int32)

setFieldValue(String, Object)

Sets the field value in the record buffer.

public:
 virtual void setFieldValue(System::String ^ text1, System::Object ^ obj1);
public virtual void setFieldValue (string text1, object obj1);
abstract member setFieldValue : string * obj -> unit
override this.setFieldValue : string * obj -> unit
Public Overridable Sub setFieldValue (text1 As String, obj1 As Object)

Parameters

text1
String
obj1
Object

Remarks

The arrayIndex parameter applies only to array fields. Either omit this parameter or specify0 (zero) for fields that are not arrays. This method throws an ArgumentOutOfRange exception if the specified field is unknown or a TypeMismatch exception if the value parameter is incompatible with the specified field..

Applies to

setFieldValue(String, Object, Int32)

public:
 virtual void setFieldValue(System::String ^ _fieldName, System::Object ^ _value, int _arrayIndex);
public virtual void setFieldValue (string _fieldName, object _value, int _arrayIndex);
abstract member setFieldValue : string * obj * int -> unit
override this.setFieldValue : string * obj * int -> unit
Public Overridable Sub setFieldValue (_fieldName As String, _value As Object, _arrayIndex As Integer)

Parameters

_fieldName
String

The array index of the field; optional.

_value
Object

The array index of the field; optional.

_arrayIndex
Int32

The array index of the field; optional.

Applies to