Listview subitems error |
Post Reply |
Author | |
wakerunner
Groupie Joined: 29 September 2007 Status: Offline Points: 85 |
Post Options
Thanks(0)
Posted: 18 February 2009 at 5:34pm |
I get an error anytime I reference the listviews subitems. The code below works with MS's listview control but not Codejocks. ctrlReminders.ListItems.Item(1).SubItems(1) = "anything" |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Do you have Report view ?
Just created new project, added such code and it works.
Private Sub Form_Load()
ListView1.View = xtpListViewReport ListView1.ColumnHeaders.Add , , "Column1", 1000 ListView1.ColumnHeaders.Add , , "Column2", 1000 ListView1.ListItems.Add , , "Item"
ListView1.ListItems.Item(1).SubItems(1) = "anything" End Sub |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
wakerunner
Groupie Joined: 29 September 2007 Status: Offline Points: 85 |
Post Options
Thanks(0)
|
Sorry to waste your time, I must have been working too late last night, I didn't have the .view set to listviewreport.
Thank You
|
|
ReiSenador
Newbie Joined: 04 September 2010 Location: Philippines Status: Offline Points: 2 |
Post Options
Thanks(0)
|
Good Day, im new to CJ listview and i find it amazing but.. i have and error here.
While Not rs.EOF Set item = .ListItems.Add(, , rs.Fields("salesid"), 1, 1) <------------- it says wrong number of arguments. <.add> is highlighted item.SubItems(1) = rs.Fields("Purchased_Date") item.SubItems(2) = rs.Fields("CustomerName") item.SubItems(3) = rs.Fields("item1") item.SubItems(4) = rs.Fields("item1_qty") item.SubItems(5) = rs.Fields("item1_pr").... so on this is working 100% in my vb6 listview but when i switch it to cj listview i got this error. i know i got it a wrong syntax maybe, and can you help me? |
|
Learn it.
|
|
ReiSenador
Newbie Joined: 04 September 2010 Location: Philippines Status: Offline Points: 2 |
Post Options
Thanks(0)
|
nevermind, i figure it out.
|
|
Learn it.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |