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


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

Re: How to copy a listview variable?

From Karl Wochele <kw@ecos-system.invalid>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: How to copy a listview variable?
Date 2018-02-15 07:49 +0100
Organization solani.org
Message-ID <p63ah4$ell$2@solani.org> (permalink)
References <vum88dddhdoa8oahff3v6850mdlgib5q9g@4ax.com> <p63adr$ell$1@solani.org>

Show all headers | View raw


of course I meant oclone(), not aclone()...

Am 15.02.2018 um 07:47 schrieb Karl Wochele:
> Hi Dick,
> 
> usually I would say you could use aclone() with VO-objects. But I don't 
> think that this will work because in a listview you remove the columns 
> in the underlying windows-object. No idea how you can handle this.
> 
> Karl
> 
> Am 14.02.2018 um 17:09 schrieb D.J.W. van Kooten:
>> We show a listview in a window and use that LV variable to pass to a
>> method to export the contents to Excel.
>>
>> Now 1 client wants to see a few of these columns omiitted in the Excel
>> export. It is not difficult ti remove the columns
>> (oLVl:DeleteColumn(2) etc) but thet should not be deleted in the
>> 'master' listview showing in the screen.
>>
>> Problem is that doing this:
>>
>> oLVCopy:=oLVOriginal
>>
>> and then delete the columns in oLVCopy also deletes these columns in
>> oLVOriginal, which is apparently copied by reference.
>>
>> What would be the quickets way to copy the listview in such a way that
>> I can still pass it after deleting the required columns to my Excel
>> function without changing the original listview?
>>
>> Dick
>>

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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