Platforms to show: All Mac Windows Linux Cross-Platform

VariantToVariantHashMapMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Data Types MBS DataTypes Plugin 8.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
An alternative dictionary class for an hash map with variants and keys and values.
Example
dim s as new VariantToVariantHashMapMBS

s.Value("Test")="Hello"
s.Value("test")="World"

MsgBox str(s.Count) // shows 2

s.Value(ConvertEncoding("test",encodings.UTF16))="Just a"
s.Value(ConvertEncoding("Test",encodings.UTF16))="test"

MsgBox str(s.Count) // shows 4

Think of this class like the reimplementation for dictionary class with being case sensitive.

When using variants for keys, you may get better results if all keys used have the same data type to improve comparison.
All text comparison is done either case sensitive or insensitive. Defined in constructor.
You can choose whether you want to keep the map ordered using the OrderedMap class or whether you prefer a higher speed with the HashMap class.

This class has no sub classes.

Some examples using this class:

Blog Entries


The items on this page are in the following plugins: MBS DataTypes Plugin.


VariantToVariantHashMapIteratorMBS   -   VariantToVariantMapIteratorMBS


The biggest plugin in space...