Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

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.
Example:
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"
Notes:
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





Links
MBS Xojo tutorial videos