[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to correctly use the new Equals()
[Thread Prev] | [Thread Next]
- Subject: Re: How to correctly use the new Equals()
- From: Jussi Lahtinen <jussi.lahtinen@xxxxxxxxx>
- Date: Wed, 9 Oct 2024 21:37:14 +0300
- To: user@xxxxxxxxxxxxxxxxxxxxxx
By quick look, I think the problem is that the array with key "cc" is
compared by memory address, which is of course different.
Try:
myArray = ["xx", 1, 2, 3]
aa = ["aa": "aa", "bb": "bb", "cc": myArray]
ab = ["aa": "aa", "bb": "bb", "cc": myArray]
Jussi
On Wed, Oct 9, 2024 at 7:43 PM Brian G <brian@xxxxxxxxxxxxxxxx> wrote:
> This is not equal:
>
> Public ab As Collection
> Public aa As Collection
> aa = ["aa": "aa", "bb": "bb", "cc": ["xx", 1, 2, 3]]
> ab = ["aa": "aa", "bb": "bb", "cc": ["xx", 1, 2, 3]]
> If ab.Equals(aa) Then
> Print "yippy"
> Else
> Print "boooo"
> Endif
>
> Is there a better explanation what equals() actually means when true?
>
> --
> ~~~~ Brian
>
>
| How to correctly use the new Equals() | Brian G <brian@xxxxxxxxxxxxxxxx> |