FindMapElement()

Syntax

Result = FindMapElement(Map(), Key$)
Description
Change the current map element to the element associated at the specified 'Key$'. If 'Result' is 0, there is no such 'Key$' in the map, else it returns the pointer to the element data (for advanced use only).

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

Supported OS

All

<- DeleteMapElement() - Map Index - FreeMap() ->