DICTLOOKUP

Top  Previous  Next

Syntax

STRING = DictLookup(dict as POINTER,key as STRING)

Description

Looks up the value associated with a given key.

Parameters

dict - Pointer to an associative array created with the DICTCREATE command.

key - The key string.

Return value

The string value associated with the given key.

Remarks

Lookup uses a hashing algorithm to quickly find the association element with a key that exactly matches the given key.

Example usage

PRINT DictLookup(myDict,"Lisa")
PRINT DictLookup(myDict,"Sue")
PRINT DictLookup(myDict,"Jerry")