Re: Datatype checking in DotNET
- From: Nicholas Sherlock <N.sherlock@xxxxxxxxx>
- Date: Fri, 29 Jun 2007 20:42:13 +1200
Daniel Hobson wrote:
Is there methods in Dotnet that allow datatype checking for example:-
If I have a string that contains '2.12' and then I want to check to see if its a float, single or double then what class would I use to do this? is there a class that even can do this???
Any feedback on this would be greatly appreciated
I've never seen DotNet, but there is probably some method of a Double class, for instance, that attempts a conversion from a string to a double and will throw an error or give a return code if the string isn't a valid double.
Cheers,
Nicholas Sherlock
.
- Follow-Ups:
- Re: Datatype checking in DotNET
- From: Daniel Hobson
- Re: Datatype checking in DotNET
- From: Daniel Hobson
- Re: Datatype checking in DotNET
- References:
- Datatype checking in DotNET
- From: Daniel Hobson
- Datatype checking in DotNET
- Prev by Date: Datatype checking in DotNET
- Next by Date: Re: Datatype checking in DotNET
- Previous by thread: Datatype checking in DotNET
- Next by thread: Re: Datatype checking in DotNET
- Index(es):
Relevant Pages
|