We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,668 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Compilation error : method or data member not found

        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.

2
Contributors
3
Replies
19 Hours
Discussion Span
3 Months Ago
Last Updated
10
Views
rahul.gour
Newbie Poster
3 posts since Feb 2013
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 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...

AndreRet
Industrious Poster
4,706 posts since Jan 2008
Reputation Points: 391
Solved Threads: 481
Skill Endorsements: 20

Thanks AndreRet...

rahul.gour
Newbie Poster
3 posts since Feb 2013
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

Only a pleasure. Please mark as solved, thanx.

AndreRet
Industrious Poster
4,706 posts since Jan 2008
Reputation Points: 391
Solved Threads: 481
Skill Endorsements: 20

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.0795 seconds using 2.65MB