Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #3909

Re: Access to ListViewItem:oCargo from ListView;GetSelectedItem()

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "Wolfgang Riedmann" <wriedmann@gmail.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Access to ListViewItem:oCargo from ListView;GetSelectedItem()
Date 8 Aug 2012 09:42:03 GMT
Lines 18
Message-ID <a8eqjaFobuU1@mid.individual.net> (permalink)
References <85a4f213-723c-42c6-8424-b4f3fba96f9f@m13g2000vbd.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=iso-8859-1
X-Trace individual.net rJ0oCuU02U8PTwfsCCxDEwbEwD+a6hCpKQUbyEs1CbHBxnZcBYQUkGJ/sHvEe2CpI=
Cancel-Lock sha1:0vWG6JP0qlLhmaU8/ysAemkC4dg=
User-Agent XanaNews/1.18.1.6
Xref csiph.com comp.lang.clipper.visual-objects:3909

Show key headers only | View raw


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


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