Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

TextToVariantHashMapMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Data Types MBS DataTypes Plugin 15.1 Yes Yes Yes Yes No
Function: An alternative dictionary class for a hash map with strings as keys and variants as values.
dim s as new TextToVariantHashMapMBS

s.Value("Hello") = "Hallo"
s.Value("World") = "Leute"

MsgBox str(s.Count) // shows 2

MsgBox s.Value("Hello")+" "+s.Value("World") // shows "Hallo Leute"
MsgBox s.Key(1)+" "+s.Key(0) // shows "Hello World"
MsgBox s.ValueAtIndex(1)+" "+s.ValueAtIndex(0) // shows "Hallo Leute"
All text comparison is done either case sensitive or insensitive.
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.

Feedback, Comments & Corrections

This class has no sub classes.

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

TextToVariantHashMapIteratorMBS   -   TextToVariantOrderedMapIteratorMBS

MBS FileMaker tutorial videos