Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

VariantHashSetMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Data Types MBS DataTypes Plugin 8.2 Yes Yes Yes Yes No
Function: An alternative dictionary class for a hash set with variants.
Example:
dim s as new VariantHashSetMBS

s.insert "test"
s.insert "Test"

MsgBox str(s.Count) // shows 2

s.insert ConvertEncoding("test",encodings.UTF16)
s.insert ConvertEncoding("Test",encodings.UTF16)

MsgBox str(s.Count) // shows 4
Notes:
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 set ordered using the OrderedSet class or whether you prefer a higher speed with the HashSet class.

Feedback, Comments & Corrections

This class has no sub classes.

Some examples which use this class:


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


VariantHashSetIteratorMBS   -   VariantOrderedSetIteratorMBS




Links
MBS FileMaker tutorial videos