|
RAD Studio VCL Reference
|
Changes the bound information for the last dimension of a safe array.
function SafeArrayRedim(VarArray: PVarArray; const NewBound: TVarArrayBound): HRESULT; stdcall;
__stdcall HRESULT SafeArrayRedim(PVarArray VarArray, const TVarArrayBound NewBound);
SafeArrayRedim resizes the safe array given through the VarArray parameter, by changing the bound information for the last dimension of the array, according to the NewBound parameter. VarArray is a pointer to the safe array.
The possible return values of SafeArrayRedim are listed in the following table, together with their meaning.
|
Value |
Meaning |
|
The operation was completed successfully. | |
|
The given argument is nil. | |
|
The array given through VarArray is locked. | |
|
The application raised an exception. | |
|
There is not enough memory to complete the operation. |
After the resizing operation took place, the existing elements of the array are preserved and the new elements are set to zero or empty.
|
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
|
What do you think about this topic? Send feedback!
|