WRITE Function (BigText)

Streams a BigText to a BLOB field in a table.


[Ok := ] BigText.WRITE(OutStream)

Parameters

OutStream

Type: OutStream

The object to which you write a BigText.

Type: Boolean

This optional return value specifies whether the write transaction was successful.

To delete the content in a BigText variable use the CLEAR function.

CLEAR(BigText)

This example shows how to stream a BigText to a BLOB field in a table.

This example requires that you define the following variables.

Variable name DataType Subtype

Bstr

BigText

 

ItemRec

Record

Item

Ostream

OutStream

 

Bstr.ADDTEXT('This is the text string that we want to store in a BLOB field.');
ItemRec.Picture.CREATEOUTSTREAM(Ostream);
Bbstr.WRITE(Ostream);
ItemRec.INSERT;

Community Additions

ADD
Show: