You just use IsNumeric() to validate.

If you have a method that accepts a numeric argument, the value "000A"
will actually get through. So before calling such a method, make sure
the value is numeric first.

The code was using try/catch statements when setting object properties.
Not the best practice I know; sounded good at the time.

J

-----Original Message-----
From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of barry.b
Sent: Tuesday, 15 April 2008 2:08 PM
To: cfaussie
Subject: [cfaussie] Re: Just in case anyone's feeling bored...



'ullo, 'ullo, 'ullo wot's goin' on 'ere then? care to explain further?


> This was exactly the problem. User was entering "000A" into a numeric
> field, which should have caused a validation error to appear.

so what did you do to get around it?




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to