Click or drag to resize

VoDbFieldPut Function

Set the value of a specified database field.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.10
Syntax
 FUNCTION VoDbFieldPut(
	wFieldPos AS DWORD,
	uNewValue AS USUAL
) AS LOGIC
View Source

Parameters

wFieldPos
Type: UInt32
The position of the field in the current database file.
uNewValue
Type: Usual
The value to assign to the field.  The data type of this expression must match the data type of the designated field variable.

Return Value

Type: Boolean
TRUE if successful; otherwise, FALSE.
Remarks
VODBFieldPut() is like FieldPut() but is strongly typed.  See FieldPut() for more information.
Examples
This example compares VODBFieldPut() to assign a value to the first field of a database:
X#
nField := 1
// Using VODBFieldPut()
VODBFieldPut(nField, "MyData")        // Set field value
// Or:
? FIELDNAME(1)        // City (name of the first field)
City := "MyData"
See Also