Sign in Join
FPDoc Onlineexperiment

DynArraySetLength procedure

In unit System

Set the length of a dynamic array.

Declaration

pascal
procedure DynArraySetLength(var a: Pointer; typeInfo: Pointer; 
 dimCnt: SizeInt; lengthVec: PSizeInt)

Description

DynArraySetLength sets the length of the dynamic array a to the first dimCnt lengths specified in the array lengthVec. The dynamic array type is described in typeInfo which points to a record of type TDynArrayTypeInfo

It should never be necessary to call this function directly, the standard SetLength function should be used instead.

Errors

If an invalid pointer is specified, an error may occur.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.