Xojo Conferences
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

IntegerToIntegerOrderedMapMBS.AddKeys(targetArray() as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Data Types MBS DataTypes Plugin 12.5 Yes Yes Yes Yes No
Function: Similar to keys, but adds keys to the given array.
Notes: For older Xojo version 2007/2008 where the plugin can't create an array, so the values and keys function returns always nil.

Feedback, Comments & Corrections

IntegerToIntegerOrderedMapMBS.AddValues(targetArray() as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Data Types MBS DataTypes Plugin 12.5 Yes Yes Yes Yes No
Function: Similar to values, but adds values to the given array.
Notes: For older Xojo version 2007/2008 where the plugin can't create an array, so the values and keys function returns always nil.

Feedback, Comments & Corrections

IntegerToIntegerOrderedMapMBS.Clear
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Data Types MBS DataTypes Plugin 8.2 Yes Yes Yes Yes No
Function: Erases all of the elements.

Feedback, Comments & Corrections

IntegerToIntegerOrderedMapMBS.Clone as IntegerToIntegerOrderedMapMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Data Types MBS DataTypes Plugin 12.3 Yes Yes Yes Yes No
Function: Creates a copy of this map.

Feedback, Comments & Corrections

IntegerToIntegerOrderedMapMBS.CloneDictionary as Dictionary
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Data Types MBS DataTypes Plugin 12.3 Yes Yes Yes Yes No
Function: Creates a copy of this map as a dictionary.

Feedback, Comments & Corrections

IntegerToIntegerOrderedMapMBS.Constructor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Data Types MBS DataTypes Plugin 8.2 Yes Yes Yes Yes No
Function: The default constructor.

See also:

Feedback, Comments & Corrections

IntegerToIntegerOrderedMapMBS.Constructor(dic as dictionary)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Data Types MBS DataTypes Plugin 12.3 Yes Yes Yes Yes No
Function: Creates a new map with the keys and values from the dictionary.

See also:

Feedback, Comments & Corrections

IntegerToIntegerOrderedMapMBS.Constructor(other as IntegerToIntegerOrderedMapMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Data Types MBS DataTypes Plugin 12.3 Yes Yes Yes Yes No
Function: Creates a new map with the keys and values from the existing map.

See also:

Feedback, Comments & Corrections

IntegerToIntegerOrderedMapMBS.CountKey(key as Integer) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Data Types MBS DataTypes Plugin 8.2 Yes Yes Yes Yes No
Function: Counts how often a key is used in this map.

Feedback, Comments & Corrections

IntegerToIntegerOrderedMapMBS.find(key as Integer) as IntegerToIntegerOrderedMapIteratorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Data Types MBS DataTypes Plugin 8.2 Yes Yes Yes Yes No
Function: Finds the key and returns an interator.
Notes: Returns the same value as the last method if the item was not found.

Feedback, Comments & Corrections

IntegerToIntegerOrderedMapMBS.first as IntegerToIntegerOrderedMapIteratorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Data Types MBS DataTypes Plugin 8.2 Yes Yes Yes Yes No
Function: Returns an iterator pointing to the beginning of the map.
Example:
// Create a map
dim m as new IntegerToIntegerOrderedMapMBS

m.value(1)=2
m.value(2)=4
m.value(3)=8

// get iterators pointing to first and after last element
dim i as IntegerToIntegerOrderedMapIteratorMBS = m.first
dim e as IntegerToIntegerOrderedMapIteratorMBS = m.last

// Show all keys and values
while i.isNotEqual(e)
MsgBox str(i.Key)+" -> "+str(i.Value)
i.MoveNext
wend

Feedback, Comments & Corrections

IntegerToIntegerOrderedMapMBS.hasKey(key as Integer) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Data Types MBS DataTypes Plugin 8.2 Yes Yes Yes Yes No
Function: Returns True if Key is in the map and False if it is not. Returns a Boolean.

Feedback, Comments & Corrections

IntegerToIntegerOrderedMapMBS.Key(index as Integer) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Data Types MBS DataTypes Plugin 8.2 Yes Yes Yes Yes No
Function: Returns the value of key for the Indexth sequential item.
Notes: If there is no Indexth item in the map, a call generates an OutOfBoundsException error. The first item has the index zero.

Feedback, Comments & Corrections

IntegerToIntegerOrderedMapMBS.Keys as Integer()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Data Types MBS DataTypes Plugin 8.2 Yes Yes Yes Yes No
Function: Returns all the keys as an array.
Example:
dim m as new IntegerToIntegerOrderedMapMBS

m.Value(1)=5
m.Value(2)=7

for each v as Integer in m.keys
MsgBox str(v)
next
Notes: The order is stable and matches the order returned by the Values method at least until the Dictionary is modified. Use this method with For Each to loop through all the keys.

Feedback, Comments & Corrections

IntegerToIntegerOrderedMapMBS.last as IntegerToIntegerOrderedMapIteratorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Data Types MBS DataTypes Plugin 8.2 Yes Yes Yes Yes No
Function: Returns an iterator pointing to the end of the map.
Example:
// Create a map
dim m as new IntegerToIntegerOrderedMapMBS

m.value(1)=2
m.value(2)=4
m.value(3)=8

// get iterators pointing to first and after last element
dim i as IntegerToIntegerOrderedMapIteratorMBS = m.first
dim e as IntegerToIntegerOrderedMapIteratorMBS = m.last

// Show all keys and values
while i.isNotEqual(e)
MsgBox str(i.Key)+" -> "+str(i.Value)
i.MoveNext
wend

Feedback, Comments & Corrections

IntegerToIntegerOrderedMapMBS.lookup(key as Integer, defaultvalue as Integer) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Data Types MBS DataTypes Plugin 8.2 Yes Yes Yes Yes No
Function: Looks up the passed value of Key.
Example:
dim map as new IntegerToIntegerOrderedMapMBS

map.value(10)=1
map.value(100)=2
map.value(1000)=3

MsgBox str(map.lookup(5,0)) // shows 0 as value is missing
MsgBox str(map.lookup(10,0)) // shows 1 as value is found
Notes: If Key is found, it returns the corresponding value. If Key is not found, it returns the passed defaultValue.

Feedback, Comments & Corrections

IntegerToIntegerOrderedMapMBS.LowerBound(key as Integer) as IntegerToIntegerOrderedMapIteratorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Data Types MBS DataTypes Plugin 8.2 Yes Yes Yes Yes No
Function: Returns an iterator for the first element whose key is not less than k.

Feedback, Comments & Corrections

IntegerToIntegerOrderedMapMBS.Operator_Convert as Dictionary
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Data Types MBS DataTypes Plugin 12.3 Yes Yes Yes Yes No
Function: Creates a copy of the map as dictionary.

Feedback, Comments & Corrections

IntegerToIntegerOrderedMapMBS.Remove(first as IntegerToIntegerOrderedMapIteratorMBS, last as IntegerToIntegerOrderedMapIteratorMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Data Types MBS DataTypes Plugin 8.2 Yes Yes Yes Yes No
Function: Erases all elements in a range.

See also:

Feedback, Comments & Corrections

IntegerToIntegerOrderedMapMBS.Remove(key as Integer) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Data Types MBS DataTypes Plugin 8.2 Yes Yes Yes Yes No
Function: Erases the element with the given key.

See also:

Feedback, Comments & Corrections

IntegerToIntegerOrderedMapMBS.Remove(pos as IntegerToIntegerOrderedMapIteratorMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Data Types MBS DataTypes Plugin 8.2 Yes Yes Yes Yes No
Function: Erases the element pointed to by the pos iterator.

See also:

Feedback, Comments & Corrections

IntegerToIntegerOrderedMapMBS.UpperBound(key as Integer) as IntegerToIntegerOrderedMapIteratorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Data Types MBS DataTypes Plugin 8.2 Yes Yes Yes Yes No
Function: Returns an iterator for the first element whose key is greater than k.

Feedback, Comments & Corrections

IntegerToIntegerOrderedMapMBS.value(key as Integer) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Data Types MBS DataTypes Plugin 8.2 Yes Yes Yes Yes No
Function: The value associated with the given key.
Notes:
If you query for a key which does not exist, a KeyNotFoundException is raised.
(Read and Write computed property)

Feedback, Comments & Corrections

IntegerToIntegerOrderedMapMBS.ValueAtIndex(index as Integer) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Data Types MBS DataTypes Plugin 8.2 Yes Yes Yes Yes No
Function: Returns the value with the given index.
Notes: If there is no Indexth item in the map, a call generates an OutOfBoundsException error. The first item has the index zero.

Feedback, Comments & Corrections

IntegerToIntegerOrderedMapMBS.Values as Integer()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Data Types MBS DataTypes Plugin 8.2 Yes Yes Yes Yes No
Function: Returns all the values as an array
Example:
dim m as new IntegerToIntegerOrderedMapMBS

m.Value(1)=5
m.Value(2)=7

for each v as Integer in m.Values
MsgBox str(v)
next
Notes: The order is stable and matches the order returned by Keys at least until the Map is modified. Use this method with For Each to loop through all the values.

Feedback, Comments & Corrections

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




Links
MBS FileMaker tutorial videos