Results 1 to 2 of 2

Thread: [VB6] Fast GetStringBetween

  1. #1
    Saiyan Race





    Infamous Joe's Avatar
    Join Date
    Dec 2011
    Gender
    Location
    Hyperbolic Time Chamber
    Age
    26
    Posts
    9,756
    Thanks
    2,780
    Thanked 16,242 Times in 4,238 Posts


    Downloads
    23
    Uploads
    36
    Mentioned
    2985 Post(s)
    Time Online
    293 d 22 h 44 m
    Avg. Time Online
    3 h 44 m
    Rep Power
    10
    Gamer IDs

    Gamertag: Infam0us Joe Steam ID: infamousjoe

    [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,206
    Thanks
    723
    Thanked 1,392 Times in 651 Posts


    Downloads
    81
    Uploads
    17
    Mentioned
    497 Post(s)
    Time Online
    21 d 17 h 32 m
    Avg. Time Online
    16 m
    Rep Power
    14
    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
  •