The AL developer preview is still evolving with frequent updates. Follow us on the Dynamics NAV Team Blog for the announcements.

LENGTH Method (BigText)

Retrieves the length of a BigText variable.


Length := BigText.LENGTH  

Property Value/Return Value

Type: Integer

The length of the BigText variable.


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).


The following example demonstrates how to retrieve the length of a BigText variable. This example requires that you create the following global variables and text constant.

Variable name DataType
MyBigText BigText
VarLength Integer
Text constant name ENU value
Text000 VarLength = %1

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.

VarLength := MyBigText.LENGTH;  
MESSAGE(Text000, VarLength);  

See Also

BigText Data Type