Article View: borland.public.cppbuilder.nativeapi
Article #11316TListItems as parametar
From: ScOe
Date: Wed, 18 Feb 2004 21:56
Date: Wed, 18 Feb 2004 21:56
26 lines
1298 bytes
1298 bytes
What seems to be wrong with this code ?
TListItems *FCurList;
void Init ()
{
FCurList = Form1->ListView1->Items;
}
void func1 ()
{
Form1->ListView1->Items = func2 ();
}
TListItems * __fastcall func2 ();
{
FCurList->Clear ();
TListItem *pItem;
for (int i=0; i< 10; i++) {
pItem = FCurList->Add ();
FCurList->Caption = String (i);
}
return FCurList;
}
this function clears existing listview but does not fill it.
Technical Details
Message-ID:
<4033dfcd$3@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-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,8a4f6862e066e98d,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-18 14:11:06 PST From: "ScOe" <cbinders@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: TListItems as parametar Date: Wed, 18 Feb 2004 22:56:11 +0100 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 193.198.130.227 Message-ID: <4033dfcd$3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1077141453 193.198.130.227 (18 Feb 2004 13:57:33 -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