Results 1 to 34 of 34

Thread: [RESOLVED] Object doesn't support this property or method 438

Threaded View

  1. #20
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    Re: Object doesn't support this property or method 438

    Quote Originally Posted by Keithuk View Post
    I assume you tested it first?
    Yup - not thouroughly but It worked ok for me.
    Quote Originally Posted by Keithuk View Post
    and obviously HTMLString wasn't declared
    see Item 2 in my previous post.("2. Defined HTMLString in the Declarations Section and removed its definitions in the Form_Load and lvwCodes_Click events.")

    Regarding the VAG /EOBD: isn't it just a matter of moving
    Code:
        If lvwCodes.SelectedItem.SubItems(1) <> "-" Then
            HTMLString = HTMLString & "<b>EOBD II Error Code:</b> " & lvwCodes.SelectedItem.SubItems(1) & "<p/><p/>"
        End If
    into the 'Else' clause of the preceding 'If' statement ?
    i.e. from this
    Code:
    If lvwCodes.SelectedItem.Text = "-" Then
        HTMLString = HTMLString & "<center><h2>" & "EOBD II Error Code: " & lvwCodes.SelectedItem.SubItems(1) & "</h2></center><p/><p/>"
    Else
        HTMLString = HTMLString & "<center><h2>" & "VAG Error Code: " & lvwCodes.SelectedItem.Text & "</h2></center><p/><p/>"
    End If
    
    'VAG,EOBD
    If lvwCodes.SelectedItem.SubItems(1) <> "-" Then
        HTMLString = HTMLString & "<b>EOBD II Error Code:</b> " & lvwCodes.SelectedItem.SubItems(1) & "<p/><p/>"
    End If
    to this
    Code:
    If lvwCodes.SelectedItem.Text = "-" Then
        HTMLString = HTMLString & "<center><h2>" & "EOBD II Error Code: " & lvwCodes.SelectedItem.SubItems(1) & "</h2></center><p/><p/>"
    Else
        HTMLString = HTMLString & "<center><h2>" & "VAG Error Code: " & lvwCodes.SelectedItem.Text & "</h2></center><p/><p/>"
        If lvwCodes.SelectedItem.SubItems(1) <> "-" Then
            HTMLString = HTMLString & "<b>EOBD II Error Code:</b> " & lvwCodes.SelectedItem.SubItems(1) & "<p/><p/>"
        End If
    End If
    Last edited by Doogle; Oct 9th, 2013 at 11:12 PM.

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