need code snippet to verify input strings



Hello,

I'm obviously a newbie, and since I detest re-inventing the wheel, can
someone show me/give me a snippet that will verify that an input string is
a numeric value? I'm using DB2 and would like to verify that a string is
integer, dec(x,y) etc. Dates I've been able to find a nice routine
(snippet) for, but numeric values seem to elude my searches.

Also, any suggestions on what one considers to be a *GOOD* snipet site
would help as well. :)

TIA,

Mairhtin
.



Relevant Pages

  • Re: copy files
    ... were can i find a snippet of code or an example that does this? ... see verify that my syntax is correct. ... > If replying to the group, please do not mail me too ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: can i copy rc3.d to rc5.d?
    ... But notice this snippet to verify your grep expression:) ... You are in a maze of little twisting passages, all alike. ...
    (comp.os.linux.misc)
  • hotelling t2
    ... I have written a small snippet of c++ code to calculate hotellings t2. ... package, which I could use to verify my code is working? ...
    (sci.stat.math)
  • Re: Help with XSD Schema
    ... Thanks Steve,I had tried that out using the following snippet ... DataSet ds2 =new DataSet; ... GOT ERRORED OUT SAYING "Input string was not in a correct format." ...
    (microsoft.public.dotnet.languages.csharp)