Platforms to show: All Mac Windows Linux Cross-Platform
Back to VariantToVariantHashMapMBS class.
VariantToVariantHashMapMBS.AddKeys(targetArray() as Variant)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 12.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
For older Xojo version 2007/2008 where the plugin can't create an array, so the values and keys function returns always nil.
VariantToVariantHashMapMBS.AddValues(targetArray() as Variant)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 12.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
For older Xojo version 2007/2008 where the plugin can't create an array, so the values and keys function returns always nil.
VariantToVariantHashMapMBS.Clear
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
VariantToVariantHashMapMBS.Clone as VariantToVariantHashMapMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 12.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
VariantToVariantHashMapMBS.CloneDictionary as Dictionary
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 12.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
VariantToVariantHashMapMBS.Constructor(CaseSensitive as Boolean = true)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If CaseSensitive is true, the comparison of texts or strings is case sensitive.
See also:
VariantToVariantHashMapMBS.Constructor(dic as dictionary, CaseSensitive as Boolean = true)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 12.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
VariantToVariantHashMapMBS.Constructor(other as VariantToVariantHashMapMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 12.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
VariantToVariantHashMapMBS.CountKey(key as Variant) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
VariantToVariantHashMapMBS.find(key as Variant) as VariantToVariantHashMapIteratorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns the same value as the last method if the item was not found.
VariantToVariantHashMapMBS.first as VariantToVariantHashMapIteratorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
VariantToVariantHashMapMBS.hasKey(key as Variant) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
VariantToVariantHashMapMBS.Key(index as Integer) as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If there is no Indexth item in the map, a call generates an OutOfBoundsException error. The first item has the index zero.
VariantToVariantHashMapMBS.Keys as Variant()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The order is stable and matches the order returned by the Values method at least until the Dictionary is modified. Use this method with For Each to loop through all the keys.
VariantToVariantHashMapMBS.last as VariantToVariantHashMapIteratorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
VariantToVariantHashMapMBS.lookup(key as Variant, defaultvalue as Variant) as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If Key is found, it returns the corresponding value. If Key is not found, it returns the passed defaultValue.
VariantToVariantHashMapMBS.Operator_Convert as Dictionary
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 12.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
VariantToVariantHashMapMBS.Remove(first as VariantToVariantHashMapIteratorMBS, last as VariantToVariantHashMapIteratorMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
VariantToVariantHashMapMBS.Remove(key as Variant) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
VariantToVariantHashMapMBS.Remove(pos as VariantToVariantHashMapIteratorMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
VariantToVariantHashMapMBS.value(key as Variant) as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Data Types | MBS DataTypes Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If you query for a key which does not exist, a KeyNotFoundException is raised.
(Read and Write computed property)
VariantToVariantHashMapMBS.ValueAtIndex(index as Integer) as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If there is no Indexth item in the map, a call generates an OutOfBoundsException error. The first item has the index zero.
VariantToVariantHashMapMBS.Values as Variant()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The order is stable and matches the order returned by Keys at least until the Map is modified. Use this method with For Each to loop through all the values.
The items on this page are in the following plugins: MBS DataTypes Plugin.