RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.VarArrayRedim Function

Resizes a Variant array.

Pascal
procedure VarArrayRedim(A: Variant; HighBound: Integer);
C++
VarArrayRedim(Variant A, int HighBound);

System

VarArrayRedim resizes the given Variant array by changing the high bound of the rightmost dimension to the given value. The A parameter can be a Variant or an OleVariant, and it must be possible to assign a value to A (A must be an lvalue). 

Existing elements of the array are preserved, and new elements are set to zero or empty. An EVariantArrayCreateError exception is thrown if the Variant given by A is not an array, or if there is not enough memory to resize the array.

Note: A Variant array can't be resized while it is locked.
 

 

VarArrayCreate 

VarArrayLock 

EVariantArrayCreateError

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!