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?

Path csiph.com!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Karl Wochele <kw@ecos-system.invalid>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: How to copy a listview variable?
Date Thu, 15 Feb 2018 07:49:02 +0100
Organization solani.org
Lines 33
Message-ID <p63ah4$ell$2@solani.org> (permalink)
References <vum88dddhdoa8oahff3v6850mdlgib5q9g@4ax.com> <p63adr$ell$1@solani.org>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace solani.org 1518677349 15029 eJwNx8EBwCAIA8CVsJDErmMK+49g73dILlpFsDAY90Fy98v1R/WYzs8i4og1sSFFIaPlIS8YOBCI (15 Feb 2018 06:49:09 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Thu, 15 Feb 2018 06:49:09 +0000 (UTC)
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0
X-NNTP-Posting-Host eJwFwQcBADAIAzBLlG+HM/xLWGLi8Al1c7Wzk+Ost41eFlcw2ZsAyWxS6gMH95IeCtRUHxm5ENE=
In-Reply-To <p63adr$ell$1@solani.org>
X-User-ID eJwFwQkBACAIA8BKoGxoHPn6R/AOm8p0I2gYjPTWZCvQVqLh4boqqxt5D7Rl+Sm+uLMKfB8epxFc
Cancel-Lock sha1:3P3HL5TPc+oRjVJugftB2mAQ0YA=
Xref csiph.com comp.lang.clipper.visual-objects:11359

Show key headers only | 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