Compare Arrays and Display Diferent Elements
Dear All,
I'm trying to create a Function, that I pass 2 arrays or 2 string,
and then i need to compare those 2 arrays and display just the elements that do not match.
Example:
-----------------------------------
Dim Remote(3) As String
Dim strLocal(2) As String
Remote(0) = "Jack"
Remote(1) = "John"
Remote(2) = "Peter"
Remote(3) = "Peter Pan"
strLocal(0) = "Jack"
strLocal(1) = "John"
strLocal(2) = "Peter"
-----------------------------------
The output in the case above would be "Peter Pan" has it is the new elemente.
The ideia is I create 2 arrays, on which contains local files and another remote files, by comparing those two arrays i know exactly what to download.
Your help is appreciated
kind regards