GetCollectionItemLength method


Prototype

GetCollectionItemLength Proto hHandle:HANDLE, lItem:LONG

Syntax

Invoke GetCollectionItemLength, hHandle, lItem

Function

Gets the length of an item (string) from a collection.

Parameters

hHandle

Handle to the collection.

lItem

The zero-based index of the item whose length is to be retreived.

Return value

Eax/Rax returns the length of the string, in characters, excluding the terminating null character.

REMARKS: If lItem does not specify a valid item, the return value is -1