FindMapElement()
Syntax
Result = FindMapElement(Map(), Key$)Description
Change the current map element to the element associated at the specified key.
Parameters
Map() The map to use. Key$ The key to find.
Return value
Returns nonzero if the key was found and zero otherwise. The value returned is a pointer to the new element data.
Example
NewMap Country.s() Country("US") = "United States" Country("FR") = "France" Country("GE") = "Germany" If FindMapElement(Country(), "US") Debug "'US' is in the country list." Else Debug "'US' is NOT in the country list !" EndIf If FindMapElement(Country(), "UK") Debug "'UK' is in the country list." Else Debug "'UK' is NOT in the country list !" EndIf
See Also
AddMapElement(), DeleteMapElement(), MapKey()
Supported OS
All