Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Rish
  • Order by date
  1. Rish

    Startup BEFORE Windows or Explorer starts!

    I have made a little simple program in VB. Basically it loads, shows a image, stays visible for 2 seconds then unloads itself. A splash screen. I would like this to appear BEFORE windows (i.e. explorer.exe) starts. So using VB to edit...
  2. Rish

    Searching strings, other method apart from InStr?

    Right, I've tried your method John but unfortunately it takes a very long time to load the executable file into the Array so it is not appropriate. A very nice idea though. Does anyone else have any suggestions or other methods of trying to solve my problem? Thanks in advance
  3. Rish

    Sorting Array

    I need to sort an array of strings BUT need to keep a record of the original position of the string from the original array. ALSO store its position in another array (of integers). e.g. original array of strings 0 B 1 B 2 A 3 C 4 F 5 G 6 D...
  4. Rish

    Searching strings, other method apart from InStr?

    So does there have to be another array to store all the EXE data (in no particular order) ? Anyone know of a sorting algorithm I can use to the specification of above? Thanks.
  5. Rish

    Searching strings, other method apart from InStr?

    I think I know what you are getting at. Here is how I have amended the code so far: Dim Ary1() Dim Ary2() ReDim Ary1(0) ReDim Ary2(0) Dim Data As String Dim Ary3(255) Dim Found As Boolean Found = False X = 0 'X will hold number of bytes in file Num = 0 'Used solely in the for loop below...
  6. Rish

    Searching strings, other method apart from InStr?

    John, thanks for that, after a bit of tweaking that method is in fact slower than using InStr. Thanks anyways, appreciate it. Well there is about 2500+ different strings. The executable is opened, and each string in turn is searched for in the executable file. The strings are not whole words...
  7. Rish

    Searching strings, other method apart from InStr?

    I am searching for multiple strings, I currently have an array which holds all the search criteria. I then search through the FileData$ searching for each string in turn (from the array) and if a match is found stop the current process otherwise carry on to the next string in the array. The...
  8. Rish

    Searching strings, other method apart from InStr?

    I tried the following: FileData$ Like "*" & Search$ & "*" It worked but after time analysis using LIKE has not made much difference, if anything. Thanks for that suggestion John. Any other suggestions? Thanks again.
  9. Rish

    Searching strings, other method apart from InStr?

    what i'm actually doing is this: i have a EXE file located: C:\FILE.EXE I have opened this file etc. etc. and assigned it's data to a string called FileData. Now my search criteria is stored as Search$. FileData is going to hold a lot of data from the EXE file. That is the dilemma in further...
  10. Rish

    VB 5 String Information

    Someone already pointed this out in another post replace InStrRev with plain old InStr
  11. Rish

    Searching strings, other method apart from InStr?

    I have two strings, and I am comparing them to see if one strings' contents exist in the other: e.g. Dim A as string Dim B as string A$ = "hello" B$ = "lo" then using: Instr(A$, B$) I am (in my project) assigning large amounts of data to the strings. Is there any other...
  12. Rish

    How can I delete a file ????

    Try to TakeOwership this file before.

Part and Inventory Search

Back
Top