Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #11364
| From | Franz Rachbauer <office@rachbauer.org> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: How to copy a listview variable? |
| Date | 2018-02-15 14:52 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <p643bc$jqc$1@gioia.aioe.org> (permalink) |
| References | <vum88dddhdoa8oahff3v6850mdlgib5q9g@4ax.com> <p63adr$ell$1@solani.org> <uuka8d5q3g93hbbj1n9p8k6c8625ks6pgd@4ax.com> <3d09e830-acbc-4783-8912-c6f449a3b405@googlegroups.com> <50ra8dpa05bt1u0j94opdag78e5da8n6fi@4ax.com> |
Why not copy it in a loop only with needed cols?
LOCAL x AS DWORD
LOCAL oItem AS ListViewItem
LOCAL oCol as ListViewColumn
// lvwData has column "Text" and others
// lvwCopy only has column "Text"
oCol := ListViewColumn{20,#TXT}
oCol:Caption := "Text"
SELF:oDClvwCopy:AddColumn(oCol)
FOR x := 1 TO SELF:oDClvwData:ItemCount
oItem := SELF:oDClvwData:GetItemAttributes(x)
SELF:oDClvwCopy:AddItem(oItem)
NEXT
Regards Franz
Am 15.02.2018 um 12:18 schrieb D.J.W. van Kooten:
> Replying on message of Thu, 15 Feb 2018 02:01:00 -0800 (PST) from
> Mathias:
>
>
> Hello Mathias
>
>
>> The problem is that the column objects are still the same if you copy the list view object. I Think the smartest option is to send an Array of column names to use for your export as a parameter. Null value could mean exporting all columns leaving current functionality unchanged.
>>
> I have multiple alternative options to send the results to Excel. I
> just wondered why it's not possible to really clone a listview object
> like you can with an array. If there's a "trick" for it, I'd be ready
> in a minute - other solutions take quite a bit more time.
>
> Dick
>
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to copy a listview variable? D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2018-02-14 17:09 +0100
Re: How to copy a listview variable? "Jamal" <noooospam@example.com> - 2018-02-14 21:57 -0500
Re: How to copy a listview variable? D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2018-02-15 10:31 +0100
Re: How to copy a listview variable? Karl Wochele <kw@ecos-system.invalid> - 2018-02-15 07:47 +0100
Re: How to copy a listview variable? Karl Wochele <kw@ecos-system.invalid> - 2018-02-15 07:49 +0100
Re: How to copy a listview variable? D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2018-02-15 10:34 +0100
Re: How to copy a listview variable? Mathias <mathias.hakansson@consultec.se> - 2018-02-15 02:01 -0800
Re: How to copy a listview variable? D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2018-02-15 12:18 +0100
Re: How to copy a listview variable? Franz Rachbauer <office@rachbauer.org> - 2018-02-15 14:52 +0100
Re: How to copy a listview variable? D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2018-02-15 16:50 +0100
csiph-web