FindMapElement()
Syntaxe
Resultat = FindMapElement(Map(), Clef$)Description
Change l'élément courant de la map par celui associé à la 'Clef$' spécifiée. Si le 'Resultat' est 0, il n'y a pas d'élément correspondant à cette clef, sinon il représente le pointeur vers les données de l'élément.
Exemple: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
OS Supportés
Tous