# BigText.Length() Method
> Version: _Available or changed with runtime version 1.0._
Retrieves the length of the text stored in this BigText instance.
## Syntax
```al
Length :=   BigText.Length()
```
> NOTE
> This method can be invoked using property access syntax.
## Parameters
BigText
Type: bigtext-data-type
An instance of the bigtext-data-type data type.
## Return Value
Length
Type: ../integer/integer-data-type
The length of the text stored in this BigText instance.
## Remarks
To delete the content in a BigText variable use the ../system/system-clear-joker-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.
```al
var
    MyBigText: BigText;
    VarLength: Text;
    Text000: Label 'VarLength = %1';
begin
    MyBigText.AddText('ABCDEFG');
    VarLength := MyBigText.Length;
    Message(Text000, VarLength);
end;
```
## Related information
bigtext-data-type
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/bigtext/bigtext-length-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/bigtext/bigtext-length-method/
