|
-
Feb 27th, 2006, 01:31 PM
#1
Thread Starter
New Member
Using VB 6 functions in .net
Hello everyone!
I am looking for a way to access the vb 6 version of IsDate(). The .net version under microsoft.visualbasic.isdate is just a wrapper for datetime.parse(). Usually the .net version works fine if the data you pass it is already suposed to be a date and you are just verifying it. If the expression passed is not a date an exception is thrown. Exceptions are slow, at least slow enough that I can't run the function back to back 30 plus times without it taking 60 seconds or so, in vb 6 it takes less than a second.
So what I need is a way to use the function that VB6 calls, not the .net wrapper. I could make a COM object with just that function inside but I am trying to make a 100% .net project and using COM would violate that. I know calling VB6 directly IS using COM, but atleast I don't have to worry about installing my cheap little IsDate class.
In the end I am trying to write a class that will go through plain text and pick out any dates, if anyone has any suggestion I am all ears.
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
|