(no subject)
Now here's a question for you:
When is 50 greater than 300?
Hint: This is VB, and I have a textbox containing 50 and a textbox containing 300, and am comparing them with Text1 > Text2.
When is 50 greater than 300?
Hint: This is VB, and I have a textbox containing 50 and a textbox containing 300, and am comparing them with Text1 > Text2.
no subject
Why do you persist in asking such simple questions?
no subject
no subject
By the way, this happens for the opposite reason that "1" + "1" = "2". (when I first used Strings in C++ (MFC CString class), I tried to stick them together with '&').
no subject
2+2=5 (for extremely high values of 2)
Re: 2+2=5 (for extremely high values of 2)
Re: 2+2=5 (for extremely high values of 2)
no subject
Yes, young padiwan, this is a common error made by many a programmer.
I come from the old school where you declared EVERY varaible type and convert numeric strings before doing ANYTHING to them.
Sloppy programming like what you encountered is why M$ is constantly having to publush patches. They tend to assume that the compiler will make everything good and right, when the truth is that it won't. The compiler cares nothing about what you want, only about how the code's written, and even then, what you THINK you wrote may not be what you really wrote. :P
Cheers
no subject