Help Center
Help Center›AfxNova

DSafeArray.InsertElementmethod

COMmethodDSafeArray.incundocumented
Not documented upstream. This symbol was found in the AfxNova source but appears in no documentation topic. The signature below is read directly from the code; any description comes from the source comments.

Syntax

PRIVATE FUNCTION DSafeArray.InsertElement (BYVAL nPos AS LONG, BYVAL pData AS ANY PTR) AS HRESULT
PRIVATE FUNCTION DSafeArray.InsertElement (BYVAL pData AS ANY PTR) AS HRESULT
PRIVATE FUNCTION DSafeArray.InsertElement (BYVAL nPos AS LONG, BYREF bsData AS BSTRING) AS HRESULT
PRIVATE FUNCTION DSafeArray.InsertElement (BYREF bsData AS BSTRING) AS HRESULT

Parameters

NameDescription
nPos= Index of the array element where the new string will be inserted.
pData= Pointer to the data to insert.

Return value

S_OK Success. DISP_E_BADINDEX The specified index is not valid. E_INVALIDARG One of the arguments is not valid. E_OUTOFMEMORY Memory could not be allocated for the element. E_FAIL The item pointed to by m_psa is not a safe array descriptor. It is a fixed-size array. It is not a one-dimensional array.

Reference

  • Include file DSafeArray.inc
  • Defined in AfxNova/DSafeArray.inc:1749