Article View: borland.public.cppbuilder.nativeapi
Article #11318Re: TListItems as parametar
From: Remy Lebeau (TeamB)
Date: Wed, 18 Feb 2004 22:42
Date: Wed, 18 Feb 2004 22:42
15 lines
1481 bytes
1481 bytes
"ScOe" <cbinders@hotmail.com> wrote in message news:4033dfcd$3@newsgroups.borland.com... > this function clears existing listview but does not fill it. Nor should it. You are esentially assigning the same TListItems instance back to itself. In the TListView::SetItems() event handler, it called TListItems::Assign(), which in turn Clears() the list before copying over the values of the source list. You are working with multiple pointers to the same list, so it ends up clearing itself and thus has no items to then copy to itself. Gambit
Technical Details
Message-ID:
<4033e899$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4033dfcd$3@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,8a4f6862e066e98d X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-18 14:40:06 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4033dfcd$3@newsgroups.borland.com> Subject: Re: TListItems as parametar Date: Wed, 18 Feb 2004 14:42:59 -0800 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.138.253 Message-ID: <4033e899$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1077143705 67.22.138.253 (18 Feb 2004 14:35:05 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail