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,987
    Userbars
    97
    Thanks
    4,462
    Thanked 24,433 Times in 5,463 Posts


    Downloads
    23
    Uploads
    36
    Mentioned
    3427 Post(s)
    Time Online
    433 d 5 h 40 m
    Avg. Time Online
    3 h 26 m
    Rep Power
    25

    [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
    Zachafer's Avatar
    Join Date
    Dec 2011
    Gender
    Posts
    1,216
    Userbars
    6
    Thanks
    753
    Thanked 1,422 Times in 666 Posts


    Downloads
    97
    Uploads
    17
    Mentioned
    504 Post(s)
    Time Online
    23 d 12 h 31 m
    Avg. Time Online
    11 m
    Rep Power
    18
    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
  •