Error trapping
Error trapping
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
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
- Red Squirrel
- Posts: 29209
- Joined: Wed Dec 18, 2002 12:14 am
- Location: Northern Ontario
- Contact:
Error trapping
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
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
Honk if you love Jesus, text if you want to meet Him!
Error trapping
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
<3
Archived topic from Iceteks, old topic ID:2996, old post ID:24645
Error trapping
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.Athy wrote: 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:24646
Error trapping
umm im talking about turing.
PLEASE HELP WTD
Archived topic from Iceteks, old topic ID:2996, old post ID:24651
PLEASE HELP WTD
Archived topic from Iceteks, old topic ID:2996, old post ID:24651
Error trapping
Woah, must remember to yell at teacher! Lol!wtd wrote: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.Athy wrote: As far as I know you can't errortrap letters if you need a number input, but I might be wrong.
<3
<3
Archived topic from Iceteks, old topic ID:2996, old post ID:24656
Error trapping
Type "strrealok" and hit F9.typon wrote: umm im talking about turing.
PLEASE HELP WTD
Archived topic from Iceteks, old topic ID:2996, old post ID:24664
Error trapping
Cool! SO if you hit F9 it takes you to Turing Help?wtd wrote:Type "strrealok" and hit F9.typon wrote: umm im talking about turing.
PLEASE HELP WTD
Archived topic from Iceteks, old topic ID:2996, old post ID:24668
Error trapping
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
Archived topic from Iceteks, old topic ID:2996, old post ID:24672
Error trapping
Cool, thanks, any shortcuts in Turing help.wtd wrote: 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:24673
Error trapping
worked thanks
<3
Archived topic from Iceteks, old topic ID:2996, old post ID:24780
<3
Archived topic from Iceteks, old topic ID:2996, old post ID:24780