Xbasic
StringDictionary.EXISTS Function
Syntax
Result_Flag as L = Exists as l(name as c)
Arguments
- Result_Flag
.T. = The specified entry exists, .F. = The specified entry does not exist.
- name
The key value of an entry in a StringDictionary list.
Description
Return if an item exists in the dictionary.
Discussion
The .EXISTS() method determines whether a specified entry is in the StringDictionary list.
Example
dim sd as StringDictionary
sd.set("abc", "3")
? sd.exists("abc")
= .T.
sd.clear()
? sd.exists("abc")
= .F.See Also