Iterating through MDI_Children 
Author Message
 Iterating through MDI_Children

I want to iterate through the MDI_Children forms,find one with a
specific tag value and close it.

What is the best way of doing it?



Mon, 31 Jan 2005 18:35:06 GMT  
 Iterating through MDI_Children

Quote:
> I want to iterate through the MDI_Children forms,find one with a
> specific tag value and close it.

> What is the best way of doing it?

In your MDI parent form:

dim f as form
for each f in me.mdichildren
    if f.Tag = ... then    'or if f.tag Is ... Then
        f.close
    end if
next f

Armin



Mon, 31 Jan 2005 21:53:18 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Multiple MDI_Child forms cloned and loaded dynamically?

2. MDI_Form Client/MDI_Child DLL

3. MDI_Form Client/MDI_Child DLL

4. MDI_Form Client/MDI_Child DLL

5. Multi-select Menu or Permanent Menu and MDI_CHILD Menu Handle

6. MDI_Form Client/MDI_Child DLL

7. Iterate through a recordset for a compare

8. Iterate thru Groups in database window?

9. Iterating through data

10. iterate through all subforms?

11. iterating toolbars collection?

12. Iterating a form's property values

 

 
Powered by phpBB® Forum Software