
Signature
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com
>I have to compare two columns of a listview.
> I use this:
[quoted text clipped - 7 lines]
>
> Thanks a lot, Lina
Hi Alex,
I did that, but it did not work.
What I did, and it worked is that I added a 0 to each side of the equation
like this:
lvw_Asign.ListItems(X).ListSubItems(4) +0 >
lvw_Asign.ListItems(X).ListSubItems(5) +0 Then
And it worked. Why? I do not know...
Thanks a lot, Lina
> Try to "convert" to numbers:
>
[quoted text clipped - 12 lines]
> >
> > Thanks a lot, Lina
Alex Dybenko - 31 Jan 2006 17:45 GMT
Well, this is strange, but fine if it works
once you made:
lvw_Asign.ListItems(X).ListSubItems(4) +0
then value of lvw_Asign.ListItems(X).ListSubItems(4) was converted to
number, in order to add 0 (also number) - that is why you get correct result
Val() function do the same thing, but for some reason it did not work here

Signature
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com
> Hi Alex,
> I did that, but it did not work.
[quoted text clipped - 22 lines]
>> >
>> > Thanks a lot, Lina