Results 1 to 4 of 4

Thread: [RESOLVED] html source viewer error

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2020
    Posts
    32

    Resolved [RESOLVED] html source viewer error

    on vb6 forums and some sites the treeview gets populated as i move mouse over element objects. but if i try it on that site or youtube this error fires up.


    source in attachment.
    Attached Files Attached Files

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: html source viewer error

    Code:
    Set objAttribute = objElement.Attributes.Item(i)
    this worked without error, but i am not sure if the result is correct
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2020
    Posts
    32

    Re: html source viewer error

    Quote Originally Posted by westconn1 View Post
    Code:
    Set objAttribute = objElement.Attributes.Item(i)
    this worked without error, but i am not sure if the result is correct
    It is amazing to see how professional coders like you do this in blink of an eye while me trying here for hours while scratching my hair.
    Thank you so much westconn1 and other gents.

  4. #4
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: [RESOLVED] html source viewer error

    It is amazing to see how professional coders like you
    well not really, just support a few old apps and for my own use now, most of the bits of code i do now, is just for the forum help
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Posting Permissions

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



Click Here to Expand Forum to Full Width