Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #3909
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Access to ListViewItem:oCargo from ListView;GetSelectedItem() |
| Date | 2012-08-08 09:42 +0000 |
| Message-ID | <a8eqjaFobuU1@mid.individual.net> (permalink) |
| References | <85a4f213-723c-42c6-8424-b4f3fba96f9f@m13g2000vbd.googlegroups.com> |
Hi Frank, > I wanna store additional informations to a ListViewItem object. So I > generate an object for these informations and store it in oCargo. But > when I retrieve the object, the oCargo is empty. when you add a ListViewItem to a ListView, the objects effectively goes lost, and is recreated when you retrieve the item later. The array of values (set with ListViewItem:SetValue) is saved and restored later. Unfortunately, the Cargo value is not saved and not restored. IMHO, you should your own listview class with an array for these objects, and store the index to the object in a listViewItem value. Wolfgang
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Access to ListViewItem:oCargo from ListView;GetSelectedItem() Frank Leverenz <levi37@gmail.com> - 2012-08-08 02:19 -0700 Re: Access to ListViewItem:oCargo from ListView;GetSelectedItem() "Wolfgang Riedmann" <wriedmann@gmail.com> - 2012-08-08 09:42 +0000 Re: Access to ListViewItem:oCargo from ListView;GetSelectedItem() John Martens <adsl672100@tiscali.nl> - 2012-08-08 12:33 +0200
csiph-web