SafeArrayRedim

psa, psaboundNew)
SAFEARRAY FAR* psa
SAFEARRAYBOUND FAR* psaboundNew

Changes the least significant (rightmost) bound of a safe array.

Parameters

psa

Pointer to an array descriptor.

psaboundNew

Pointer to a new safe array bound structure containing the new array bound. Only the least significant dimension of an array may be changed.

Return Value

The SCODE obtained from the returned HRESULT is one of the following:

SCODE
Meaning
S_OK
Success.
DISP_E_ARRAYISLOCKED
The array is currently locked.
E_INVALIDARG
The item pointed to by psa is not a safe array descriptor.

Comments

If you reduce the bound of an array, SafeArrayRedim deallocates the array elements outside the new array boundary. If you increase the bound of an array, SafeArrayRedim allocates and initializes the new array elements. The data is preserved for elements that exist in both the old and the new array.

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database