BigText.Write(OutStream) Method

Version: Available or changed with runtime version 1.0.

Streams a BigText object to a BLOB field in a table.

Syntax

[Ok := ]  BigText.Write(OutStream: OutStream)

Parameters

BigText
 Type: BigText
An instance of the BigText data type.

OutStream
 Type: OutStream
The stream to which you write a BigText.

Return Value

[Optional] Ok
 Type: Boolean
true if the write transaction was successful, otherwise false.

Remarks

To delete the content in a BigText variable, use the Clear Method.

Clear(BigText)  

Example

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

var
    Bstr: BigText;
    Ostream: OutStream;
    ItemRec: Record Item;
begin 
    Bstr.AddText('This is the text string that we want to store in a BLOB field.');  
    ItemRec.Picture.CreateOutStream(Ostream);  
    Bstr.Write(Ostream);  
    ItemRec.Insert;  
end;

BigText Data Type
Get Started with AL
Developing Extensions