Click here to Skip to main content
15,886,071 members
Articles / General Programming
Alternative
Tip/Trick

Validating Simple Primitive Data Types :TIP (for Beginners)

Rate me:
Please Sign up or sign in to vote.
1.00/5 (2 votes)
2 Nov 2010CPOL 10.1K   1   4
Microsoft.VisualBasic.Information.IsNumeric(value)
Microsoft.VisualBasic.Information.IsNumeric(value)

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralReason for my vote of 1 it is not tied to primitive type lik... Pin
Ravi Sant18-Mar-11 10:15
Ravi Sant18-Mar-11 10:15 
GeneralVery basic..but good ref for beginners. Pin
GPUToaster™10-Nov-10 19:10
GPUToaster™10-Nov-10 19:10 
GeneralReason for my vote of 1 lol Pin
Sherylee8-Nov-10 22:44
Sherylee8-Nov-10 22:44 
GeneralReason for my vote of 1 This eventually ends up calling doub... Pin
Richard Deeming2-Nov-10 7:41
mveRichard Deeming2-Nov-10 7:41 
Reason for my vote of 1
This eventually ends up calling double.TryParse, after going through several unnecessary checks to ensure backwards-compatibility with VB6. It considered Boolean values to be numeric, as well as VB-style hexadecimal and octal strings.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.