🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.forms
Article #116

Re: Are any forms open?

#116
From: Steve White
Date: Wed, 17 Mar 1999 00:00
20 lines
1425 bytes
Gary White wrote:

> _app.OpenForms = new array()

Your array idea looks good. At the moment, all I really need to know is if any
form is open, so I took a similar, but simpler approach (which is now
operational). Upon initialization of the application:

_app.openFormsCount=0

Then in the onOpen method of each form this variable is incremented, and in each
onClose method it is decremented. So a simple test of the value determines how
many forms are open. I will definitely keep your array approach in mind for my
next application, for which I plan to use custom classes. I learned about the
value of custom classes too late to have used them for my current project.

Thanks again.

Steve
Technical Details
Message-ID: <36F034FE.C66CA544@worldnet.att.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36EEF08A.D6B3B90@worldnet.att.net> <36effbec.13198528@forums.borland.com> <36EF4A4C.B430A2E3@worldnet.att.net> <36f1d8cb.69741292@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 15bdfb,97cd726f47b7d418,start
X-Google-Attributes: gid15bdfb,public
From: Steve White <sdwhite@worldnet.att.net>
Subject: Re: Are any forms open?
Date: 1999/03/17
Message-ID: <36F034FE.C66CA544@worldnet.att.net>
X-Deja-AN: 455907674
Content-Transfer-Encoding: 7bit
References: <36EEF08A.D6B3B90@worldnet.att.net> <36effbec.13198528@forums.borland.com> <36EF4A4C.B430A2E3@worldnet.att.net> <36f1d8cb.69741292@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Reply-To: sdwhite@worldnet.att.net
Newsgroups: borland.public.vdbase.forms