Pascal Scripting: SetArrayLength

Prototype

procedure SetArrayLength(var Arr: Array; I: LongInt);

Description

Sets the length of an array. Always call SetArrayLength before accessing the elements in an array.

Remarks

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