Stupid Newbie Question
Posted on 2000-05-03
Ok, I feel really dumb about asking this one, but I just can't seem to figure it out, so here it goes.
I have two strings:
STRING1 = 5182000
STRING2 = 532000
then, I compare them like so:
if string1 < string2 then msgbox "do something"
Now, obviously, string1 is not less than string2, yet vb tells me it is.
I realize that I should be comparing integers, however, they are strings that I am getting, and when I try to convert them to integers, I get an "Overflow" error.
I guess, if I could just somehow convert a string to an integer, I think my problems would be solved.... Help!