help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'System' (#rtl)

DynArraySetLength

Set the length of a dynamic array

Declaration

Source position: dynarrh.inc line 32

procedure DynArraySetLength(

  var a: Pointer;

  typeInfo: Pointer;

  dimCnt: SizeInt;

  lengthVec: PSizeInt

);

Description

DynArraySetLength sets the length of the dynamical array a to the first dimCnt lengths specified in the array lengthVec. The dynamical 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

SetLength

  

Set length of a string.

tdynarraytypeinfo

  

Type information for a dynamic array.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505