Click or drag to resize

FieldPutBytes Function

Write an array of bytes direct to the workarea buffer.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.4a
Syntax
 FUNCTION FieldPutBytes(
	nFieldPos AS USUAL,
	aBytes AS BYTE[]
) AS USUAL
View Source

Parameters

nFieldPos
Type: Usual
The position OF the FIELD IN the database file structure.
aBytes
Type: Byte
The value to write to the field

Return Value

Type: Usual
The value assigned TO the field.   IF nFieldPos does not correspond to the position of any field in the database file, FieldPutBytes() will generate an error.
Remarks
This will only work for DBF based workareas (not for Advantage workareas)
See Also