Hello.
I´m trying to make my procedure faster, which starts with reading a few MB txt file line by line and by checking for the presence of a string in each line.
For testing I downloaded this code, which is ought to make the InStr search much faster: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=30761&lngWId=1
A new Class Module was created upon import of the code. The code contains the following function:
Friend Function InString(Start As Long, String1 As String, String2 As String, Optional Compare As VbCompareMethod = vbBinaryCompare) As Long
How can I use this InString function from my standard module? I never used or heard of Class Modules before.
Thanks for any help.
I´m trying to make my procedure faster, which starts with reading a few MB txt file line by line and by checking for the presence of a string in each line.
For testing I downloaded this code, which is ought to make the InStr search much faster: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=30761&lngWId=1
A new Class Module was created upon import of the code. The code contains the following function:
Friend Function InString(Start As Long, String1 As String, String2 As String, Optional Compare As VbCompareMethod = vbBinaryCompare) As Long
How can I use this InString function from my standard module? I never used or heard of Class Modules before.
Thanks for any help.