Click or drag to resize

VoDbFieldPutBytes Function

X#
Set the value of a specified database field.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION VoDbFieldPutBytes(
	wFieldPos AS DWORD,
	aBytes AS BYTE[]
) AS LOGIC
Request Example View Source

Parameters

wFieldPos
Type: DWord
The position of the field in the current database file.
aBytes
Type: Byte
The value to write to the record buffer of the RDD. No translations are done.

Return Value

Type: Logic
TRUE if successful; otherwise, FALSE.
Remarks
VODBFieldPut() is like FieldPut() but is strongly typed. This function, however, does not call the error handler and will not, therefore, produce a runtime error message or create an error object if it fails. Thus, it may be important to check the return value to determine if the function succeeded.
the LastRddError property in the runtime state. will contain needed information regarding any error that occurs.
See FieldPut(Usual, Usual) for more information and an example.
Examples
This example compares VODBFieldPut() to assign a value to the first field of a database:
X#
1nField := 1
2// Using VODBFieldPut()
3VODBFieldPut(nField, "MyData")    // Set field value
4// Or:
5? FIELDNAME(1)    // City (name of the first field)
6City := "MyData"
See Also