### Check Key exists

A sub to check if a Key in the KeyValueStore exists.
Define the Label
Private lblInfo As Label
Define the Sub
' Check if a key exists
' If not found, the Label lblInfo showe which key.
`Sub CheckKey(key As String) As Boolean
Dim result As Boolean = True
If kvs.ContainsKey(key) = False Then
result = False
lblInfo.Text = "Key '" & key & "' NOT found!"
End If
Return result
End Sub`
Usage Example
If CheckKey("map") = False Then Return

Changed: , Category: KeyValueStore, File: T6C212M1547.htm, ID: 1547