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
Printable View
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
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
If Int(OBJECT.TEXTBOX.VALUE)<0 then
End If