Results 1 to 2 of 2

Thread: [VB6] Fast GetStringBetween

  1. #1
    Saiyan Race j03's Avatar
    Join Date
    Dec 2011
    Gender
    Location
    Hyperbolic Time Chamber
    Age
    29
    Posts
    11,872
    Userbars
    91
    Thanks
    4,329
    Thanked 23,919 Times in 5,382 Posts


    Downloads
    23
    Uploads
    36
    Mentioned
    3394 Post(s)
    Time Online
    417 d 23 h 3 m
    Avg. Time Online
    3 h 27 m
    Rep Power
    25
    Gamer IDs

    Gamertag: Infam0us Joe

    [VB6] Fast GetStringBetween

    Fastest? Well I'd like to say it is as some people claim it to be, but anything is possible

    Here it is:



    An example of using this to grab NP on hand would be:

    lblNP.Caption = GetStringBetween(HTML, "NP: <a id='npanchor' href=""/objects.phtml?type=inventory"">", "</a>")

    PS: If you have to use quotation marks in your code, put two like how I did. Otherwise it not work.

  2. #2
    Little Brother

    Zachafer's Avatar
    Join Date
    Dec 2011
    Gender
    Posts
    1,213
    Userbars
    6
    Thanks
    748
    Thanked 1,421 Times in 665 Posts


    Downloads
    90
    Uploads
    17
    Mentioned
    503 Post(s)
    Time Online
    23 d 8 h 6 m
    Avg. Time Online
    11 m
    Rep Power
    17
    Joe I'm pretty sure using Mid$ (even better MidB$) is faster than using Split, especially because the Delimiter parameter is a variant and variants are the slowest data types.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •