SUM: MI-L Testing to ensure a string is numeric

2004-05-17 Thread Tim.Nuteson
Thanks to all who responded to my question:  How can I ensure that a
value entered into an EditText control of a MB dialog is numeric?  The
simplest solution was offered by Michael Taylor, Martin Highham, and
Robert Crossley:

If str$(val(teststring)) = teststring then
  'numeric
Else
  'not
End If

Thanks again,

Tim Nuteson
Target


-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 11784



Re: SUM: MI-L Testing to ensure a string is numeric

2004-05-17 Thread B. Thoen
Would that algorithm return the correct result if you fed it a numeric 
string like '0023456', or are numbers with leading zeros not going to be 
encountered?


On Mon, 17 May 2004, Tim.Nuteson wrote:

> Thanks to all who responded to my question:  How can I ensure that a
> value entered into an EditText control of a MB dialog is numeric?  The
> simplest solution was offered by Michael Taylor, Martin Highham, and
> Robert Crossley:
> 
>   If str$(val(teststring)) = teststring then
> 'numeric
>   Else
> 'not
>   End If
> 
> Thanks again,
> 
> Tim Nuteson
> Target
> 
> 
> -
> List hosting provided by Directions Magazine | www.directionsmag.com |
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> Message number: 11784
> 


-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 11788