Class
Set
Set
Description
Used to compare and test case-sensitive data.
Methods
Name |
Parameters |
Returns |
Shared |
---|---|---|---|
item As Variant, ParamArray moreItems() As Variant |
|||
otherSet As Set |
Set |
||
otherSet As Set |
|||
otherSet As Set |
Set |
||
doubleArray() As Double |
Set |
✓ |
|
int32Array() As Int32 |
Set |
✓ |
|
int64Array() As Int64 |
Set |
✓ |
|
objectArray() As Object |
Set |
✓ |
|
singleArray() As Single |
Set |
✓ |
|
stringArray() As String |
Set |
✓ |
|
variantArray() As Variant |
Set |
✓ |
|
dict As Dictionary |
Set |
✓ |
|
item As Variant |
|||
otherSet As Set |
Set |
||
otherSet As Set |
|||
otherSet As Set |
|||
otherSet As Set |
Set |
||
otherSet As Set |
|||
otherSet As Set |
|||
otherSet As Set |
Set |
||
item As Variant |
|||
otherSet As Set |
Set |
Property descriptions
Set.Count
Count As Integer
The number of values in the set.
This property is read-only.
Method descriptions
Set.Add
Add(item As Variant, ParamArray moreItems() As Variant)
Adds the item(s) to the set.
Set.Complement
Complement(otherSet As Set) As Set
Returns a Set whose members appear in the Set but are not in the otherSet.
Set.Constructor
Constructor(otherSet As Set)
Creates a set made of of members that are identical to the otherSet passed.
Note
Constructors are special methods called when you create an Object With the New keyword And pass In the parameters above.
Set.Differences
Differences(otherSet As Set) As Set
Returns a new Set with members that are unique to the Set and the otherSet.
Set.FromArray
FromArray(doubleArray() As Double) As Set
Return a new Set with the elements from the array.
This method is shared.
FromArray(int32Array() As Int32) As Set
Return a new Set with the elements from the array.
This method is shared.
FromArray(int64Array() As Int64) As Set
Return a new Set with the elements from the array.
This method is shared.
FromArray(objectArray() As Object) As Set
Return a new Set with the elements from the array.
This method is shared.
FromArray(singleArray() As Single) As Set
Return a new Set with the elements from the array.
This method is shared.
FromArray(stringArray() As String) As Set
Return a new Set with the elements from the array.
This method is shared.
FromArray(variantArray() As Variant) As Set
Return a new Set with the elements from the array.
This method is shared.
Set.FromDictionary
FromDictionary(dict As Dictionary) As Set
Return a new Set populated with the keys of the Dictionary passed.
This method is shared.
Set.HasMember
HasMember(item As Variant) As Boolean
Returns True if the Set has a member that matches the item passed.
Set.Intersection
Intersection(otherSet As Set) As Set
Returns a new Set with members that are common to the Set and the otherSet.
Set.Intersects
Intersects(otherSet As Set) As Boolean
Returns True if the Set and the otherSet have member values in common.
Set.IsSubsetOf
IsSubsetOf(otherSet As Set) As Boolean
Returns True if every member of the Set is present in otherSet.
Set.Iterator
Iterator As Iterator
Allows iterating through the Set with For...Each
Set.Operator_Add
Operator_Add(otherSet As Set) As Set
Returns a new set whose members are the union of both the Set and the otherSet.
Set.Operator_Compare
Operator_Compare(otherSet As Set) As Integer
Description goes here
Set.Operator_RightCompare
Operator_RightCompare(otherSet As Set) As Integer
Description goes here
Set.Operator_Subtract
Operator_Subtract(otherSet As Set) As Set
Returns a copy of the Set minus any values that are also in the otherSet.
Set.Pop
Pop As Variant
Removes and returns an arbitrary member of the Set.
If the Set is empty, a RuntimeException occurs.
Set.Remove
Remove(item As Variant)
Removes the item passed.
If the item is not found, a KeyNotFoundException occurs.
Set.RemoveAll
RemoveAll
Removes all members from the Set.
Set.ToArray
ToArray As Variant()
Returns a Variant array of the items in the Set.
Set.ToDictionary
ToDictionary As Dictionary
Returns a Dictionary with the members as keys.
Set.Union
Union(otherSet As Set) As Set
Returns a new Set that contain the members of the Set and the otherSet.
Interfaces
The Set class implements the Iterable class interface.
Compatibility
All projects types on all supported operating systems.
See also
Object parent class