|
-
Oct 11th, 2000, 08:32 AM
#1
Thread Starter
Addicted Member
Hi
How do i write a if..else statement so that it can detect any negative number that is present in a textbox?
Thanks in advance
-
Oct 11th, 2000, 08:36 AM
#2
The following is possible, though probably not very efficient:
1. Search for "-"
2. Take the string from "-" to " " or the end of the line, whichever applies.
3. Walk through the string testing for IsNumeric(character)
4. If all are numeric....Voila!
Good Luck
DerFarm
-
Oct 11th, 2000, 08:59 AM
#3
Addicted Member
If Int(OBJECT.TEXTBOX.VALUE)<0 then
End If
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
|