Checking if a form is in Memory (or not) 
Author Message
 Checking if a form is in Memory (or not)

Hi there Folks,

On the start up of the application, I load and show a particular form - I then proceed to hide the particular form.
(The user has an option to unload the form -completely)

How can I check if the particular form is still in memory, so that I dont reload another instance of the form - instead I just make the form Visible (if it is hidden).

So for instance, if I have a form named frm0004, I need to check if the form is still in memory or not, or if it is hidden or visible.

Thanks for your time and assistance.

Regards
Moahmmed



Fri, 17 Jan 2003 03:00:00 GMT  
 Checking if a form is in Memory (or not)

In a boolean function routine

Function FindForm(strName as string) as boolean
    Dim fm as form

    for each fm in forms
        if fm.name = "The name of the form I'm looking for" then
            FindForm = true
            exit function
        end if
    next
    FindForm = False
End Function


  Hi there Folks,

  On the start up of the application, I load and show a particular form - I then proceed to hide the particular form.
  (The user has an option to unload the form -completely)

  How can I check if the particular form is still in memory, so that I dont reload another instance of the form - instead I just make the form Visible (if it is hidden).

  So for instance, if I have a form named frm0004, I need to check if the form is still in memory or not, or if it is hidden or visible.

  Thanks for your time and assistance.

  Regards
  Moahmmed



Fri, 17 Jan 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. I am trying to update a record, i am not using data control

2. I am trying to update a record, i am not using data control

3. ScaleHeight/ScaleWidth with borderless form - Not working, please help I am stumped

4. MDI Forms memory check

5. Custom Contact form not Releasing memory

6. memory not realeased (also leaks) when Loading/Unloading a form in VB6 SP5

7. Forms not unloaded and increasing memory

8. Form unload does not release memory!

9. Checking for btn caption does not unload form

10. How to check if form is loaded or not

11. Submit the form, how to check if required field is Not empty

12. API to check if a Form (Window) is visible or not

 

 
Powered by phpBB® Forum Software