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


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

Re: Closing windows

From Karl Wochele <kw@ecos-system.invalid>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Closing windows
Date 2017-09-05 11:48 +0200
Organization solani.org
Message-ID <oolrsj$jba$1@solani.org> (permalink)
References <83adc623-efb2-4aa2-bd12-06813f9467af@googlegroups.com>

Show all headers | 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