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" 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: 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 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