Text Data Type

Version: Available or changed with runtime version 1.0.

Denotes a text string.

Remarks

The Text data type is a value type, such that every time you use a method on it, you create a new string object in memory. This requires a new allocation of space. In situations where you need to perform repeated modifications to a string, the overhead associated with creating a Text data type can be costly.

The TextBuilder Data Type is a reference type, which holds a pointer elsewhere in memory. For performance reasons, we recommend you to use it when you want to modify a string without creating a new object. For example, using TextBuilder Data Type can boost performance when concatenating many strings together in a loop.

See Also

Get Started with AL
Developing Extensions
TextBuilder Data Type