Platforms to show: All Mac Windows Linux Cross-Platform

Back to SortMBS module.

Next items

SortMBS.CopyArrayMBS(source() as Boolean, dest() as Boolean, sourceIndex as Integer = 0, sourceCount as Integer = -2, destIndex as Integer = 0)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies the content of one array to another array.

Does nothing if sourceCount is 0 or source array is empty.
SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to store in the destination array.

Performs bounds checking and may raise an OutOfBoundsException. You may need to resize the destination array to be big enough.

See also:

SortMBS.CopyArrayMBS(source() as Color, dest() as Color, sourceIndex as Integer = 0, sourceCount as Integer = -2, destIndex as Integer = 0)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies the content of one array to another array.

Does nothing if sourceCount is 0 or source array is empty.
SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to store in the destination array.

Performs bounds checking and may raise an OutOfBoundsException. You may need to resize the destination array to be big enough.

See also:

SortMBS.CopyArrayMBS(source() as Currency, dest() as Currency, sourceIndex as Integer = 0, sourceCount as Integer = -2, destIndex as Integer = 0)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies the content of one array to another array.

Does nothing if sourceCount is 0 or source array is empty.
SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to store in the destination array.

Performs bounds checking and may raise an OutOfBoundsException. You may need to resize the destination array to be big enough.

See also:

SortMBS.CopyArrayMBS(source() as Double, dest() as Double, sourceIndex as Integer = 0, sourceCount as Integer = -2, destIndex as Integer = 0)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies the content of one array to another array.

Does nothing if sourceCount is 0 or source array is empty.
SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to store in the destination array.

Performs bounds checking and may raise an OutOfBoundsException. You may need to resize the destination array to be big enough.

See also:

SortMBS.CopyArrayMBS(source() as Int32, dest() as Int32, sourceIndex as Integer = 0, sourceCount as Integer = -2, destIndex as Integer = 0)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies the content of one array to another array.

nDoes nothing if sourceCount is 0 or source array is empty.
SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to store in the destination array.

Performs bounds checking and may raise an OutOfBoundsException. You may need to resize the destination array to be big enough.one

See also:

SortMBS.CopyArrayMBS(source() as Int64, dest() as Int64, sourceIndex as Integer = 0, sourceCount as Integer = -2, destIndex as Integer = 0)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies the content of one array to another array.
Example
Dim s() As Integer
Dim d() As Integer

Redim s(100)

For i As Integer = 1 To 100
s(i) = i
Next

Redim d(s.ubound)

// copy all starting 20th and put at 10th in destination
CopyArrayMBS s, d, 20, -2, 10

// copy 10 entries starting 30th and put at 40th in destination
CopyArrayMBS s, d, 30, 10, 40

// copy all
CopyArrayMBS s, d

Break

Does nothing if sourceCount is 0 or source array is empty.
SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to store in the destination array.

Performs bounds checking and may raise an OutOfBoundsException. You may need to resize the destination array to be big enough.

See also:

SortMBS.CopyArrayMBS(source() as Object, dest() as Object, sourceIndex as Integer = 0, sourceCount as Integer = -2, destIndex as Integer = 0)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies the content of one array to another array.
Example
Dim s() As Pair
Dim d() As Pair

Redim s(100)

For i As Integer = 1 To 100
s(i) = New pair(i,i)
Next

Redim d(s.ubound)

// copy all starting 20th and put at 10th in destination
CopyArrayMBS s, d, 20, -2, 10

// copy 10 entries starting 30th and put at 40th in destination
CopyArrayMBS s, d, 30, 10, 40

// copy all
CopyArrayMBS s, d

Break

Does nothing if sourceCount is 0 or source array is empty.
SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to store in the destination array.

Performs bounds checking and may raise an OutOfBoundsException. You may need to resize the destination array to be big enough.

See also:

SortMBS.CopyArrayMBS(source() as Ptr, dest() as Ptr, sourceIndex as Integer = 0, sourceCount as Integer = -2, destIndex as Integer = 0)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies the content of one array to another array.

Does nothing if sourceCount is 0 or source array is empty.
SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to store in the destination array.

Performs bounds checking and may raise an OutOfBoundsException. You may need to resize the destination array to be big enough.

See also:

SortMBS.CopyArrayMBS(source() as Single, dest() as Single, sourceIndex as Integer = 0, sourceCount as Integer = -2, destIndex as Integer = 0)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies the content of one array to another array.

Does nothing if sourceCount is 0 or source array is empty.
SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to store in the destination array.

Performs bounds checking and may raise an OutOfBoundsException. You may need to resize the destination array to be big enough.

See also:

SortMBS.CopyArrayMBS(source() as String, dest() as String, sourceIndex as Integer = 0, sourceCount as Integer = -2, destIndex as Integer = 0)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies the content of one array to another array.
Example
Dim s() As String
Dim d() As String

Redim s(100)

For i As Integer = 1 To 100
s(i) = i.ToString
Next

Redim d(s.ubound)

// copy all starting 20th and put at 10th in destination
CopyArrayMBS s, d, 20, -2, 10

// copy 10 entries starting 30th and put at 40th in destination
CopyArrayMBS s, d, 30, 10, 40

// copy all
CopyArrayMBS s, d

Break

Does nothing if sourceCount is 0 or source array is empty.
SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to store in the destination array.

Performs bounds checking and may raise an OutOfBoundsException. You may need to resize the destination array to be big enough.

See also:

SortMBS.CopyArrayMBS(source() as UInt32, dest() as UInt32, sourceIndex as Integer = 0, sourceCount as Integer = -2, destIndex as Integer = 0)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies the content of one array to another array.

Does nothing if sourceCount is 0 or source array is empty.
SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to store in the destination array.

Performs bounds checking and may raise an OutOfBoundsException. You may need to resize the destination array to be big enough.

See also:

SortMBS.CopyArrayMBS(source() as UInt64, dest() as UInt64, sourceIndex as Integer = 0, sourceCount as Integer = -2, destIndex as Integer = 0)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies the content of one array to another array.

Does nothing if sourceCount is 0 or source array is empty.
SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to store in the destination array.

Performs bounds checking and may raise an OutOfBoundsException. You may need to resize the destination array to be big enough.

See also:

SortMBS.CopyArrayMBS(source() as Variant, dest() as Variant, sourceIndex as Integer = 0, sourceCount as Integer = -2, destIndex as Integer = 0)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies the content of one array to another array.

Does nothing if sourceCount is 0 or source array is empty.
SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to store in the destination array.

Performs bounds checking and may raise an OutOfBoundsException. You may need to resize the destination array to be big enough.

See also:

SortMBS.EqualsArrayMBS(array1() as Boolean, array2() as Boolean, array1offset as Integer = 0, count as Integer = -2, array2offset as Integer = 0) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Compares the content of one array to another array.

Returns true if they are equal in the given range.

SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to start in the destination array.

Performs bounds checking and may raise an OutOfBoundsException.

See also:

SortMBS.EqualsArrayMBS(array1() as Color, array2() as Color, array1offset as Integer = 0, count as Integer = -2, array2offset as Integer = 0) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Compares the content of one array to another array.

Returns true if they are equal in the given range.

SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to start in the destination array.

Performs bounds checking and may raise an OutOfBoundsException.

See also:

SortMBS.EqualsArrayMBS(array1() as Currency, array2() as Currency, array1offset as Integer = 0, count as Integer = -2, array2offset as Integer = 0) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Compares the content of one array to another array.

Returns true if they are equal in the given range.

SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to start in the destination array.

Performs bounds checking and may raise an OutOfBoundsException.

See also:

SortMBS.EqualsArrayMBS(array1() as Double, array2() as Double, array1offset as Integer = 0, count as Integer = -2, array2offset as Integer = 0) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Compares the content of one array to another array.
Example
Const u = 99999

Dim v1(u) As Double
Dim v2(u) As Double

For i As Integer = 0 To u
v1(i) = i
v2(i) = i
Next

// should be equal
Dim b1 As Boolean = EqualsArrayMBS(v1, v2)

v1(123) = 0

// should not be equal
Dim b2 As Boolean = EqualsArrayMBS(v1, v2)

// should be equal
Dim b3 As Boolean = EqualsArrayMBS(v1, v2, 200, -2, 200)
Dim b4 As Boolean = EqualsArrayMBS(v1, v2, 0, 100, 0)

// and this should be false
Dim b5 As Boolean = EqualsArrayMBS(v1, v2, 0, 200, 0)
Dim b6 As Boolean = EqualsArrayMBS(v1, v2, 1) // <- offet one in first array

Break

Returns true if they are equal in the given range.

SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to start in the destination array.

Performs bounds checking and may raise an OutOfBoundsException.

See also:

SortMBS.EqualsArrayMBS(array1() as Int32, array2() as Int32, array1offset as Integer = 0, count as Integer = -2, array2offset as Integer = 0) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Compares the content of one array to another array.

Returns true if they are equal in the given range.

SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to start in the destination array.

Performs bounds checking and may raise an OutOfBoundsException.

See also:

SortMBS.EqualsArrayMBS(array1() as Int64, array2() as Int64, array1offset as Integer = 0, count as Integer = -2, array2offset as Integer = 0) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Compares the content of one array to another array.
Example
Const u = 99999

Dim v1(u) As Integer
Dim v2(u) As Integer

For i As Integer = 0 To u
v1(i) = i
v2(i) = i
Next

// should be equal
Dim b1 As Boolean = EqualsArrayMBS(v1, v2)

v1(123) = 0

// should not be equal
Dim b2 As Boolean = EqualsArrayMBS(v1, v2)

// should be equal
Dim b3 As Boolean = EqualsArrayMBS(v1, v2, 200, -2, 200)
Dim b4 As Boolean = EqualsArrayMBS(v1, v2, 0, 100, 0)

// and this should be false
Dim b5 As Boolean = EqualsArrayMBS(v1, v2, 0, 200, 0)
Dim b6 As Boolean = EqualsArrayMBS(v1, v2, 1) // <- offet one in first array

Break

Returns true if they are equal in the given range.

SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to start in the destination array.

Performs bounds checking and may raise an OutOfBoundsException.

See also:

SortMBS.EqualsArrayMBS(array1() as Object, array2() as Object, array1offset as Integer = 0, count as Integer = -2, array2offset as Integer = 0) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Compares the content of one array to another array.

Returns true if they are equal in the given range.

SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to start in the destination array.

Performs bounds checking and may raise an OutOfBoundsException.

Does not call Operator_Compare as this function compares object pointers.

See also:

SortMBS.EqualsArrayMBS(array1() as Ptr, array2() as Ptr, array1offset as Integer = 0, count as Integer = -2, array2offset as Integer = 0) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Compares the content of one array to another array.

Returns true if they are equal in the given range.

SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to start in the destination array.

Performs bounds checking and may raise an OutOfBoundsException.

See also:

SortMBS.EqualsArrayMBS(array1() as Single, array2() as Single, array1offset as Integer = 0, count as Integer = -2, array2offset as Integer = 0) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Compares the content of one array to another array.

Returns true if they are equal in the given range.

SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to start in the destination array.

Performs bounds checking and may raise an OutOfBoundsException.

See also:

SortMBS.EqualsArrayMBS(array1() as String, array2() as String, array1offset as Integer = 0, count as Integer = -2, array2offset as Integer = 0) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Compares the content of one array to another array.
Example
Const u = 99999

Dim v1(u) As String
Dim v2(u) As String

For i As Integer = 0 To u
v1(i) = i.ToString
v2(i) = i.ToString
Next

// these will have same pointers, but we do compare string content if not.
v1(0) = v2(0)

// should be equal
Dim b1 As Boolean = EqualsArrayMBS(v1, v2)

v1(123) = "test"

// should not be equal
Dim b2 As Boolean = EqualsArrayMBS(v1, v2)

// should be equal
Dim b3 As Boolean = EqualsArrayMBS(v1, v2, 200, -2, 200)
Dim b4 As Boolean = EqualsArrayMBS(v1, v2, 0, 100, 0)

// and this should be false
Dim b5 As Boolean = EqualsArrayMBS(v1, v2, 0, 200, 0)
Dim b6 As Boolean = EqualsArrayMBS(v1, v2, 1) // <- offet one in first array

Break

Returns true if they are equal in the given range.

SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to start in the destination array.

Performs bounds checking and may raise an OutOfBoundsException.

See also:

SortMBS.EqualsArrayMBS(array1() as UInt32, array2() as UInt32, array1offset as Integer = 0, count as Integer = -2, array2offset as Integer = 0) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Compares the content of one array to another array.

Returns true if they are equal in the given range.

SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to start in the destination array.

Performs bounds checking and may raise an OutOfBoundsException.

See also:

SortMBS.EqualsArrayMBS(array1() as UInt64, array2() as UInt64, array1offset as Integer = 0, count as Integer = -2, array2offset as Integer = 0) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Compares the content of one array to another array.

Returns true if they are equal in the given range.

SourceCount can be -2 to use array count - sourceIndex.
destIndex lets you pick where to start in the destination array.

Performs bounds checking and may raise an OutOfBoundsException.

See also:

Next items

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


💬 Ask a question or report a problem
The biggest plugin in space...