Page 1 of 1
Error trapping
Posted: Sat Jan 08, 2005 4:55 pm
by typon
Hi ppl.
I need help on how to error trap number inputs really bad.
E.G.
If i need a user input value as real, and they enter "dfasdf", how do i error trap that
PLEASE HELP ME ASJHASFJAS
Archived topic from Iceteks, old topic ID:2996, old post ID:24640
Error trapping
Posted: Sat Jan 08, 2005 5:11 pm
by Red Squirrel
What language?
Check if it has a function that checks if it's a number or not.
for example wit php you'd use preg_match to ensure it's a number and you could even limit how many digits as well.
Archived topic from Iceteks, old topic ID:2996, old post ID:24641
Error trapping
Posted: Sat Jan 08, 2005 7:58 pm
by Athy
As far as I know you can't errortrap letters if you need a number input, but I might be wrong.
<3
Archived topic from Iceteks, old topic ID:2996, old post ID:24645
Error trapping
Posted: Sat Jan 08, 2005 9:22 pm
by wtd
Athy wrote: As far as I know you can't errortrap letters if you need a number input, but I might be wrong.
<3
Of course you can. If you can determine what the numbers in the input were to do the conversaion, then you can certainly check to see if there are
any letters that can be converted to numbers.
Archived topic from Iceteks, old topic ID:2996, old post ID:24646
Error trapping
Posted: Sat Jan 08, 2005 11:17 pm
by typon
umm im talking about turing.
PLEASE HELP WTD
Archived topic from Iceteks, old topic ID:2996, old post ID:24651
Error trapping
Posted: Sat Jan 08, 2005 11:51 pm
by Athy
wtd wrote: Athy wrote: As far as I know you can't errortrap letters if you need a number input, but I might be wrong.
<3
Of course you can. If you can determine what the numbers in the input were to do the conversaion, then you can certainly check to see if there are
any letters that can be converted to numbers.
Woah, must remember to yell at teacher! Lol!
<3
Archived topic from Iceteks, old topic ID:2996, old post ID:24656
Error trapping
Posted: Sun Jan 09, 2005 2:02 am
by wtd
typon wrote: umm im talking about turing.
PLEASE HELP WTD
Type "strrealok" and hit F9.
Archived topic from Iceteks, old topic ID:2996, old post ID:24664
Error trapping
Posted: Sun Jan 09, 2005 12:59 pm
by Athy
wtd wrote: typon wrote: umm im talking about turing.
PLEASE HELP WTD
Type "strrealok" and hit F9.
Cool! SO if you hit F9 it takes you to Turing Help?
Archived topic from Iceteks, old topic ID:2996, old post ID:24668
Error trapping
Posted: Sun Jan 09, 2005 3:57 pm
by wtd
F10 is general Turing help. F9 takes you to help related to the word in front of your cursor.
Archived topic from Iceteks, old topic ID:2996, old post ID:24672
Error trapping
Posted: Sun Jan 09, 2005 4:13 pm
by Athy
wtd wrote: F10 is general Turing help. F9 takes you to help related to the word in front of your cursor.
Cool, thanks, any shortcuts in Turing help.
Archived topic from Iceteks, old topic ID:2996, old post ID:24673
Error trapping
Posted: Wed Jan 12, 2005 10:19 am
by typon
worked thanks
<3
Archived topic from Iceteks, old topic ID:2996, old post ID:24780