Xojo.Core.Dictionary.HasKey

From Xojo Documentation

Method

Xojo.Core.Dictionary.HasKey(key As Auto) As Boolean

Supported for all project types and targets.

Determines whether or not the Dictionary contains a value for the specified key.

Sample Code

Check if "Test" is used as a key value:

If Not d1.HasKey("Test") Then
d1.Value("Test") = "Initial value"
End If