Rouven Thimm
December 12th, 1999, 11:35 AM
Hi,
I am currently working with a listview to display a number of recordsets from a querydef. This querydef contains a field that identifies a recordset as special, if this is set to true I want to mark this entry line in the listview in red. So what I do is declare a variable of type ListItem and a variable of ListSubItem.
I set up a new element in the listview with
set LI = ListView1.ListItems.Add(,,"Text")
And now I want to put the subitems onto the ListSubItem-Variable so that I can set the ForeColor-Property:
set SI = LI.ListSubItems.Add (...)
Whatever I tried, my Visual Studio 6 (german, no service pack yet) returns the error message 'Property not found' for 'ListSubItems' - what am I doing wrong or what is my VS doing wrong ?
Thanks for any help,
Rouven
I am currently working with a listview to display a number of recordsets from a querydef. This querydef contains a field that identifies a recordset as special, if this is set to true I want to mark this entry line in the listview in red. So what I do is declare a variable of type ListItem and a variable of ListSubItem.
I set up a new element in the listview with
set LI = ListView1.ListItems.Add(,,"Text")
And now I want to put the subitems onto the ListSubItem-Variable so that I can set the ForeColor-Property:
set SI = LI.ListSubItems.Add (...)
Whatever I tried, my Visual Studio 6 (german, no service pack yet) returns the error message 'Property not found' for 'ListSubItems' - what am I doing wrong or what is my VS doing wrong ?
Thanks for any help,
Rouven