AnsweredAssumed Answered

vrf isNumeric function

Question asked by jfreriks on Mar 31, 2005
Latest reply on Mar 31, 2005 by jfreriks
Thanks Kevin,

The problem is that it returns true for "3a" and false for "a3".
i.e. it takes 3 as a valid number when and ignores the 'a'
I want the function to return false for a number like 3a

I am only concerned with integers, so I do not want to interpret exponentials,
decimals or signs.

Cheers

John



> Kevin Dowsey <kdowsey@turnkey-solutions.com.au> wrote:
>
John
This will return true if there is any numeric data present.



At 11:28 AM 1/04/2005 +1000, you wrote:

>Hi,
>
>Just wondering if someone has implemented the equivalent of an isNumeric()
>function
>that checks a string to see if it contains a valid number, i.e it should
>return
>false if it contains non-numeric characters such as letters, etc.
>
>I know you can execute a loop and check each character individually, but I was
>looking for a slightly neater way.
>
>The 'From String" function does not return any errors if part of the string is
>non-numeric, and the  asInt16() function only returns an error if the first
>character is non-numeric.
>
>Thanks
>John
>
>---
>You are currently subscribed to vrf as: kdowsey@turnkey-solutions.com.au
>To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
>To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
>To send messages to this mailing list,  email "vrf@agilent.com".
>If you need help with the mailing list send a message to
>"owner-vrf@it.lists.it.agilent.com".

---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".

Outcomes