Pascal Scripting: SetLength

Prototype

procedure SetLength(var X; L: LongInt);

Description

Sets the length of a string or dynamic array.

Remarks

If a dynamic array is shared with another variable, SetLength copies it only when the length changes. See Language differences compared to Delphi.