Platforms to show: All Mac Windows Linux Cross-Platform
Back to StringToVariantHashMapMBS class.
StringToVariantHashMapMBS.AddKeys(targetArray() as string)
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.
StringToVariantHashMapMBS.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.
StringToVariantHashMapMBS.Clear
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
StringToVariantHashMapMBS.Clone as StringToVariantHashMapMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 12.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
StringToVariantHashMapMBS.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 |
StringToVariantHashMapMBS.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:
StringToVariantHashMapMBS.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:
StringToVariantHashMapMBS.Constructor(other as StringToVariantHashMapMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 12.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
StringToVariantHashMapMBS.CountKey(key as string) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
StringToVariantHashMapMBS.find(key as string) as StringToVariantHashMapIteratorMBS
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.
StringToVariantHashMapMBS.first as StringToVariantHashMapIteratorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
StringToVariantHashMapMBS.hasKey(key as string) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
StringToVariantHashMapMBS.Key(index as Integer) as string
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.
StringToVariantHashMapMBS.Keys as string()
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.
StringToVariantHashMapMBS.last as StringToVariantHashMapIteratorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
StringToVariantHashMapMBS.lookup(key as string, 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.
StringToVariantHashMapMBS.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 |
StringToVariantHashMapMBS.Remove(first as StringToVariantHashMapIteratorMBS, last as StringToVariantHashMapIteratorMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
StringToVariantHashMapMBS.Remove(key as string) 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:
StringToVariantHashMapMBS.Remove(pos as StringToVariantHashMapIteratorMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Data Types | MBS DataTypes Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
StringToVariantHashMapMBS.value(key as string) 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)
StringToVariantHashMapMBS.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.
StringToVariantHashMapMBS.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.