CDicObj.Keyproperty
Sets or returns an item for a specified key in the associative array.
Syntax
PROPERTY Key (BYREF dvKey AS DVARIANT, BYREF dvNewKey AS DVARIANT)
Parameters
| Name | Description | |
|---|---|---|
dvKey | Key value being changed. | |
dvNewKey | New value that replaces the specified key. |
Return value
The item value.
Description
Sets or returns an item for a specified key in the associative array.
Remarks
Contrarily to the Dictionary object, if key is not found when changing a key, this method sets the last result code to E_INVALIDARG and exits, instead of creating a new key with its associated item empty.
Reference
- Include file
CDicObj.inc - Defined in AfxNova/CDicObj.inc:287
- Documented in Windows/Windows Script/CDicObj Class.md
- Topic: CDicObj Class