RE: Need LV Help ATT Derek Parnell
- Posted by Derek Parnell <ddparnell at bigpond.com> May 06, 2002
- 393 views
Sabal.Mike at notations.com wrote: > Can I see your full KeyReturn1_onClick() routine? I haven't been > following this thread much, since I'm not the most experienced LV user; > but it is relevant to my current project, and maybe we can isolate the > issue together. Also, what happens when running the program under > version 0.57.4? > > Mike Sabal > > >>> jorfergie03 at yahoo.com 05/06/02 09:10AM quoted Tony Steward as > saying >>> > > > > when adding the items I get {2,3} but if I try to retrieve these > items > > or change them I get 3 not avail from seq length of 2. > Are you using insertLVItem() or addLVItem() from the new win32lib? insertLVItem() returns a sequence {index, id} where index is the position within the LV of the new item and id is the item's unique identifier. The item's position can change within the LV but the id never changes. addLVItem() returns an integer id. The unique id of th eitem. It does not return its position in the listview 'cos addLVItem, by default, adds to the top of the listview. ------------- Derek.