Help Center

CDicObj.Addmethod

Adds a key and item pair to the associative array.

WindowsmethodCDicObj.incdocumented

Syntax

FUNCTION Add (BYREF dvKey AS DVARIANT, BYREF dvItem AS DVARIANT) AS HRESULT

Parameters

NameDescription
dvKeyThe key associated with the item being added.
dvItemThe item associated with the key being added.

Return value

An error occurs if the key already exists.

Description

Adds a key and item pair to the associtive array.

Reference

  • Include file CDicObj.inc
  • Defined in AfxNova/CDicObj.inc:237
  • Documented in Windows/Windows Script/CDicObj Class.md
  • Topic: CDicObj Class