J
Jeff
Hi -
I'm experiencing a strange problem when comparing 2 guids. In my trial,
they're not equal. When I step through the (VB.NET) code, they are
evaluated as equal, and when I enter the comparison in the command window,
they're not equal. I'm pretty stumped on this one. Please help.
I've tried the following structures, all with the same result:
guid1.equals(guid2)
guid1.tostring.equals(guid2.tostring)
guid1.tostring = guid2.tostring
The 2 guids are:
guid1 = 2a14ce02-20c1-11c4-8000-8ea6b5cb2452
guid2 = 007900d7-009c-00e1-f100-7900fc002900
(obviously not the same)
Those are the values reported when I type ?guid1 and ?guid2 into the command
window. When I enter any of the above structures (e.g.,
?guid1.equals(guid2)) into the command window, False is correctly returned.
But in my code, I have the statement:
if guid1.equals(guid2) then X
and X is executed!
What could be wrong here??
Thanks for any help.
- Jeff
I'm experiencing a strange problem when comparing 2 guids. In my trial,
they're not equal. When I step through the (VB.NET) code, they are
evaluated as equal, and when I enter the comparison in the command window,
they're not equal. I'm pretty stumped on this one. Please help.
I've tried the following structures, all with the same result:
guid1.equals(guid2)
guid1.tostring.equals(guid2.tostring)
guid1.tostring = guid2.tostring
The 2 guids are:
guid1 = 2a14ce02-20c1-11c4-8000-8ea6b5cb2452
guid2 = 007900d7-009c-00e1-f100-7900fc002900
(obviously not the same)
Those are the values reported when I type ?guid1 and ?guid2 into the command
window. When I enter any of the above structures (e.g.,
?guid1.equals(guid2)) into the command window, False is correctly returned.
But in my code, I have the statement:
if guid1.equals(guid2) then X
and X is executed!
What could be wrong here??
Thanks for any help.
- Jeff