ArrayCompare
Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 25 August 2020 09:45 AM

Syntax

 Public Function ArrayCompare(ByRef array1 As Variant, ByRef array2 As Variant) As Integer

Description

This function is used to compare between the element of two given arrays of the same type.

Parameters

Key Description 
array1 First array to be compared. Value of type is Variant
array2 Second array to be compared. Value of type is Variant

Return value

Returns 0 if comparing arrays was equal. Else returns -1.

Sample

 Public Sub main()

    Dim i()
    Dim array2 (2288)
    Dim compare
    CopyHigh 0, 10, 20, i
    ArrayCopy array2 , i
    Compare = ArrayCompare (i, array2)
    AlertMessage (compare)

 End Sub

See Also


Back to VTL Client Script Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions