1.11M Members

Compilation error : method or data member not found

 
0
 
        If .SubItems(19) = "Y" Then


                chkTax.Value = 1


            txtTaxRate.Text = .SubItems(16)
        Else
            chkTax.Value = 0
            txtTaxRate.Text = ""
        End If

having problem Compilation error : method or data member not found with this code
chktax is a check box.

 
0
 

Youir error is here -

If .SubItems(19) = "Y" Then

Your listview does not have a coloumn number 19 (20 - starts from 0), hence the error. Make sure you have the correct amount of coloumns...

 
0
 

Thanks AndreRet...

 
0
 

Only a pleasure. Please mark as solved, thanx.

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article