IsNumeric

  • Thread starter Thread starter William Stacey
  • Start date Start date
Yes. Its right there, just cut and paste the functions into your class or
global class and make them static methods. This is better then regex as you
can check it and convert it in same method.
 
So if I got the gist of the thread the quickest way is to build a function ,
like you did to check each character in the string, correct?


Thanks
 
MFRASER said:
So if I got the gist of the thread the quickest way is to build a
function , like you did to check each character in the string,
correct?

No. double.TryParse or Regex are by far the two most flexible options
available.

--
There are 10 kinds of people. Those who understand binary and those who
don't.

http://code.acadx.com
(Pull the pin to reply)
 
Frank Oquendo said:
No. double.TryParse or Regex are by far the two most flexible options
available.

Yes, but that's not what was stated. What was stated is that the
*quickest* way is to build a function to check each character in the
string - and that is indeed quicker (in execution time, not in
development time).
 
Back
Top