key method

Retrieves the key at the specified index in the collection.

 

Syntax

 retVal = object.key(lIndex);

Parameters

  • lIndex [in]
    Type: long

    A zero-based index of the list entry, up to the length of the collection.

Standards information

Remarks

The key can be any string, including the empty string.

The order of keys may change when items are added to the collection.

Free the memory returned in pbstrKey with SysFreeString.

See also

IHTMLStorage::getItem