FindMapElement()
语法
Result = FindMapElement(Map(), Key$)概要
Change the current map element to the element associated at the specified key.
参数
Map() The map to use. Key$ The key to find.
返回值
Returns nonzero if the key was found and zero otherwise. The value returned is a pointer to the new element data.
示例
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
参阅
AddMapElement(), DeleteMapElement(), MapKey()
已支持操作系统
所有