|
-
Feb 12th, 2008, 11:40 PM
#12
Re: [2008] simple question with my if statement.
 Originally Posted by Shaggy Hiker
IsNumeric predated Double.Parse, unless that was still around in VB6. Was it re-written? What am I missing here?
Remember that all the VB6-esque function in the VB.NET Runtime are NOT VB6 functions. They are VB.NET functions with the same names as VB6 functions and implemented in such a way as to produce the same behaviour.
When they came to implement IsNumeric in VB.NET they originally did so by calling Double.Parse and catching the exception if it failed. As I said, performance was terrible so Double.TryParse was born, specifically to support the VB.NET implementation of IsNumeric.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|