Platforms to show: All Mac Windows Linux Cross-Platform

Back to SortMBS module.

SortMBS.CountValueMBS(extends source() as Boolean, value as Boolean, sourceIndex as Integer = 0, sourceCount as Integer = -2) as Integer   New in 25.2

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 25.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Counts how often the given value is inside the array.
Example
Var values1() As Integer = Array(546, 453, 345, 453, 878)
Var values2() As Boolean = Array(True, False, True, False, True)

Var c1 As Integer = values1.CountValueMBS(453) // 2
Var c2 As Integer = values2.CountValueMBS(True) // 3
Var c3 As Integer = values2.CountValueMBS(False) // 2

MessageBox c1.ToString+EndOfLine+c2.ToString+EndOfLine+c3.ToString

You can limit range by passing in a source index and source count.
If sourceCount is -2, we sum up whole array - sourceIndex.

See also:

SortMBS.CountValueMBS(extends source() as Currency, value as Currency, sourceIndex as Integer = 0, sourceCount as Integer = -2) as Integer   New in 25.2

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 25.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Counts how often the given value is inside the array.

You can limit range by passing in a source index and source count.
If sourceCount is -2, we sum up whole array - sourceIndex.

See also:

SortMBS.CountValueMBS(extends source() as Double, value as Double, sourceIndex as Integer = 0, sourceCount as Integer = -2) as Integer   New in 25.2

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 25.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Counts how often the given value is inside the array.

You can limit range by passing in a source index and source count.
If sourceCount is -2, we sum up whole array - sourceIndex.

See also:

SortMBS.CountValueMBS(extends source() as Int32, value as Int32, sourceIndex as Integer = 0, sourceCount as Integer = -2) as Integer   New in 25.2

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 25.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Counts how often the given value is inside the array.

You can limit range by passing in a source index and source count.
If sourceCount is -2, we sum up whole array - sourceIndex.

See also:

SortMBS.CountValueMBS(extends source() as Int64, value as Int64, sourceIndex as Integer = 0, sourceCount as Integer = -2) as Integer   New in 25.2

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 25.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Counts how often the given value is inside the array.
Example
Var values1() As Integer = Array(546, 453, 345, 453, 878)
Var values2() As Boolean = Array(True, False, True, False, True)

Var c1 As Integer = values1.CountValueMBS(453) // 2
Var c2 As Integer = values2.CountValueMBS(True) // 3
Var c3 As Integer = values2.CountValueMBS(False) // 2

MessageBox c1.ToString+EndOfLine+c2.ToString+EndOfLine+c3.ToString

You can limit range by passing in a source index and source count.
If sourceCount is -2, we sum up whole array - sourceIndex.

See also:

SortMBS.CountValueMBS(extends source() as Ptr, value as Ptr, sourceIndex as Integer = 0, sourceCount as Integer = -2) as Integer   New in 25.2

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 25.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Counts how often the given value is inside the array.

You can limit range by passing in a source index and source count.
If sourceCount is -2, we sum up whole array - sourceIndex.

See also:

SortMBS.CountValueMBS(extends source() as Single, value as Single, sourceIndex as Integer = 0, sourceCount as Integer = -2) as Integer   New in 25.2

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 25.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Counts how often the given value is inside the array.

You can limit range by passing in a source index and source count.
If sourceCount is -2, we sum up whole array - sourceIndex.

See also:

SortMBS.CountValueMBS(extends source() as String, value as String, sourceIndex as Integer = 0, sourceCount as Integer = -2) as Integer   New in 25.2

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 25.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Counts how often the given value is inside the array.
Example
Var s() As String = Array("a", "b", "a", "b", "c")
Var c As Integer = s.CountValueMBS("b")

MessageBox c.ToString

You can limit range by passing in a source index and source count.
If sourceCount is -2, we sum up whole array - sourceIndex.

See also:

SortMBS.CountValueMBS(extends source() as UInt32, value as UInt32, sourceIndex as Integer = 0, sourceCount as Integer = -2) as Integer   New in 25.2

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 25.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Counts how often the given value is inside the array.

You can limit range by passing in a source index and source count.
If sourceCount is -2, we sum up whole array - sourceIndex.

See also:

SortMBS.CountValueMBS(extends source() as UInt64, value as UInt64, sourceIndex as Integer = 0, sourceCount as Integer = -2) as Integer   New in 25.2

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 25.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Counts how often the given value is inside the array.

You can limit range by passing in a source index and source count.
If sourceCount is -2, we sum up whole array - sourceIndex.

See also:

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


The biggest plugin in space...