A
AAJ
Hi
has anyone come across a function to check if a particular string can be
safely converted to a datatype
i.e. i would like to check things like
TypeCheck("1/1/2006",datetime) -> returns true
TypeCheck("fred",datetime) -> returns false
Typecheck("100"),int32) -> returns true
Typecheck("100.121"),int32) -> returns false
etc....
I know I could write by own by testing within a try{} block, but I wonder if
anyone already has one already tested and working
Andy
has anyone come across a function to check if a particular string can be
safely converted to a datatype
i.e. i would like to check things like
TypeCheck("1/1/2006",datetime) -> returns true
TypeCheck("fred",datetime) -> returns false
Typecheck("100"),int32) -> returns true
Typecheck("100.121"),int32) -> returns false
etc....
I know I could write by own by testing within a try{} block, but I wonder if
anyone already has one already tested and working
Andy