Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Urs Eggmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: How to receive a return value from a closed data window Date: Fri, 14 Mar 2014 12:20:41 +0100 Lines: 46 Message-ID: References: <62d5694a-d498-488c-94ff-d6ed725e3803@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Trace: individual.net DEvxGAHLIbRXpCJG9pQxHgPvB3WWvdZl0Y4TCnlTl/l0Ilhels Cancel-Lock: sha1:IKrjXDxeHiedi6CiWZuc+leHfiY= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-EsetId: 37303A2992966C65617162 X-EsetScannerBuild: 17441 Xref: csiph.com comp.lang.clipper.visual-objects:6669 Hi All, Krystian had some trouble with posting. He asked me to post the message below: regards Urs ********************************************* Hi All, Thanks for replay. The solution suggested by Massimo (with the global array) seems to me as not the objective approach. I do not believe, that there is no method which can "notice" that a child window was closed. Maybe later, when I better get to know this tool ... I tested also the Destroy method, but still the object describing the window was "alive". I looked for a flag in the structure of the window showing, that this window is already closed. But I did not found. Currently I test the caption property for empty and do not run the QueryClose method yet again. When the user closes the window, I clear the caption - and now it works OK. Thanks once again for your time and advice Krystian Besler "Massimo Bighelli" schrieb im Newsbeitrag news:lfspdn$da5$3@speranza.aioe.org... > > Krystian, > > you have to have access to owner's array of object > in the close method of the dtwnd2 cancel the item related > or > (and this is what I do because I'm interested only in closing all the > "child" of dtwnd when I close dtwnd) > manage a global array of object with both the owner and the child > write n.2 simple methods (of the shell in my case...) to add and remove > items > closing dtwnd means close all dtwnd's childs (those with dtwnd as owner) > if they exist as object... > > HTH > > *Massimo Bighelli* ARCA Sistemi S.r.l. >