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


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

Re: Closing windows

Path csiph.com!news.mixmin.net!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: Closing windows
Date Tue, 5 Sep 2017 11:48:02 +0200
Organization solani.org
Lines 30
Message-ID <oolrsj$jba$1@solani.org> (permalink)
References <83adc623-efb2-4aa2-bd12-06813f9467af@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace solani.org 1504604883 19818 eJwNxMEBwCAIA8CVQEjSjgNV9h/B3uMQdH5KgonBhA1UkJBc0d1kcoNeNkvxtB3f/+uYaua9BOMQnQ== (5 Sep 2017 09:48:03 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Tue, 5 Sep 2017 09:48:03 +0000 (UTC)
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
X-User-ID eJwNyNEVADEEBMCWDrs85RDRfwm5+Ryai5+A08HldkXO6m3T5uQU/AxaJcuSWnf+CKECVvziATIOESg=
X-NNTP-Posting-Host eJwNytEVADEEBMCWiF2inODpv4S7+R6aq3fA6eByz9Oadua5qScDBkwORIrRT2BhiO3yvv/VDwU3EDk=
In-Reply-To <83adc623-efb2-4aa2-bd12-06813f9467af@googlegroups.com>
Cancel-Lock sha1:3fWrGcTFM0fziucWnIR5EP+lWPc=
Xref csiph.com comp.lang.clipper.visual-objects:10948

Show key headers only | View raw


Hi Krystian,

you could use

if ismethod(oWnd,#Enddialog)
    oWnd:Enddialog()
elseif ismethod(oWnd,#EndWindow)
    oWnd:Endwindow()
endif

or

if isinstanceof(oWnd,#Dialogwindow)
    oWnd:Enddialog()
else
    oWnd:Endwindow()
endif

HTH
Karl

Am 05.09.2017 um 11:15 schrieb Krystian:
> Hi VO experts!
> 
> How may i recognize which method to use (EndWindow() vs EndDialog()) for closing windows stored in an array : {ownd1, ownd2, ...} ? Which property of the object informs about proper method ?
> Of course i may store the information in an array : {{ownd1, true}, {ownd2, false}}, but it is trivial.
> 
> Thanks
> Krystian
> 

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


Thread

Closing windows Krystian <softb@softb.pl> - 2017-09-05 02:15 -0700
  Re: Closing windows Karl Wochele <kw@ecos-system.invalid> - 2017-09-05 11:48 +0200
    Re: Closing windows Krystian <softb@softb.pl> - 2017-09-05 05:24 -0700

csiph-web