DICTGETKEY

Top  Previous  Next

Syntax

STRING = DictGetKey(pAssoc as POINTER)

Description

Returns the key used to index the data in the array.

Parameters

pAssoc - A pointer returned by GetNextAssoc.

Return value

A string key.

Remarks

Use this method while iterating through the associative array.

Example usage

PRINT:PRINT "Iterating":PRINT "---------"
pos = DictGetStartAssoc(myDict)
WHILE pos
    pAssoc = DictGetNextAssoc(myDict,pos)
    PRINT DictGetKey(pAssoc)," ",DictGetValue(pAssoc)
ENDWHILE