Breyta

Deila með


BigText.Length() Method

Version: Available or changed with runtime version 1.0.

Retrieves the length of the text stored in this BigText instance.

Syntax

Length :=   BigText.Length()

Note

This method can be invoked using property access syntax.

Parameters

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

Return Value

Length
 Type: Integer
The length of the text stored in this BigText instance.

Remarks

To delete the content in a BigText variable use the Clear Method. The syntax for the Clear method is shown in the following code snippet: Clear(BigText).

Example

The following example demonstrates how to retrieve the length of a BigText variable.

In this example, the BigText variable is initialized with the text ‘ABCDEFG’. The length, which is 7, is stored in the VarLength variable and displayed in a message box.

var
    MyBigText: BigText;
    VarLength: Text;
    Text000: Label 'VarLength = %1';
begin
    MyBigText.AddText('ABCDEFG');  
    VarLength := MyBigText.Length;  
    Message(Text000, VarLength);  
end;

BigText Data Type
Get Started with AL
Developing Extensions