Set the value of a field that is identified by its symbolic name.
XSharp.RT (in XSharp.RT.dll) Version: 2.18
Syntax Request Example
symField AS SYMBOL,
uNewValue AS USUAL
) AS USUAL
public static Usual FieldPutSym(
- Type: Symbol
The symbolic name of the field in the database file structure for the current work area.
- Type: Usual
The value to assign to the field.
The data type of this expression must match the data type of the field.
The value assigned to the field.
does not correspond to a field in the current database file, FieldPutSym() returns NIL.
FieldPutSym() assigns a new value to a field using its symbolic field name within the database file structure, rather than the string representation of field name.
Note: FieldPutSym() can be used with a BLOB field (that is, a memo field associated with a BLOB file), provided the length of the field does not exceed 64KB.
This example sets a new value for the contents of the Firstname field in the TestDBF database:
1USE TestDBF NEW