|
-
Oct 8th, 2006, 04:36 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Comparing two values, program gets it wrong!
Hi all,
I believe I've had this problem before, a long time ago, buut...
Basically, in my program it compares two values to see if one is higher than the other, and then it reports back. The only problem is, the system gets it wrong!
The code I use is:
Code:
If CTOSeconds.Text >= CTCSeconds.Text Then
<Do some stuff>
End If
CTOSeconds is the second box, and CTCSeconds is the first one.
However, I entered 4600 into the first box and 600 into the second, and I get the error message (in "Do some stuff). However, sometimes it works fine (for example, when using 4600 in the first box and 200 in the second).
Any ideas?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|