Article View: borland.public.vdbase.forms
Article #150Re: Question on closing forms
From: Romain Strieff [TeamB]
Date: Wed, 03 Mar 1999 00:00
Date: Wed, 03 Mar 1999 00:00
43 lines
1676 bytes
1676 bytes
In article <36dc5512.1676737@forums.inprise.com>, Juergen Koethnig politely paraphrased ... > I thought I kind of understand, but no, I still run into problems. I > do have a form called form1. By pushing a button a second form is > opened, lets say form2. Both forms are opened the following way > > set procedure to formX.wfm additive > mformX=new formXForm() > mformX.open() > > X being either 1 or 2. > > Now I have two buttons in form2, either just to close form2 and thus > being back at form1 by saying > mform2.close() > > or the other button, that I want to use to close both forms at the > same time as I want to close the whole procedure. So I said > mform2.close() > mform1.close() > but I get the message 'mform1' not defined. > > Where is my wrong thinking? > Scope. mform1 is a variable out of scope or nonexisting. set procedure to form2.wfm additive form.mform2=new form2Form() form.mform2.oparent=form &&<---- form.mform2.open() Then to close form1 from form2 you'd: Form.oParent.close() Form.close() -- Romain Strieff [TeamB] Please read this newsgroup guide below before posting on the private Inprise newsgroups. http://www.inprise.com/newsgroups/guide.html --
Technical Details
Message-ID:
<MPG.1146dadd9679c8c9989f7a@forums.inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36dc5512.1676737@forums.inprise.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 15bdfb,6ae0cf95b6dd1b10 X-Google-Attributes: gid15bdfb,public From: teamb@opto-pps.com (Romain Strieff [TeamB]) Subject: Re: Question on closing forms Date: 1999/03/03 Message-ID: <MPG.1146dadd9679c8c9989f7a@forums.inprise.com> X-Deja-AN: 450661947 References: <36dc5512.1676737@forums.inprise.com> Organization: TeamB Newsgroups: borland.public.vdbase.forms