Link to home
Start Free TrialLog in
Avatar of -Geek
-Geek

asked on

Visual Basic Loop innertext

I would like to change this so that it will loop for every number found after SKU# until it reaches the end of the innertext.



Dim skuTag As String = "SKU #"
        Dim index As Integer = curElement.InnerText.ToUpper.IndexOf(skuTag)
        If index <> -1 Then

            Dim SKU As String = curElement.InnerText.Substring(index + skuTag.Length).Split(" ")(0)
            MsgBox(SKU)

        End If

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of -Geek
-Geek

ASKER

Thank you so much, I hope you have enjoyed my thinking around asking a new question, and not trying to add more on to what you have helped me solve.