Control array 
Author Message
 Control array

Have you tried simply passing the form as a control to the subroutine?  you
can then reference the control array for the form as follows:

        sub someroutine(myform as form)
                for i=0 to myform.controls.count-1
                        if myform.controls(i).type is typeof listbox then
                                ' do something
                        endif
                next
        end sub



Sat, 30 Oct 1999 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. DLLs & Control Arrays + Arrays of Controls

2. Indexed Arrays/Control Arrays Help

3. Arrays of Control Arrays

4. Array limits of a control array?

5. Controlling Text Control Properties without a Control Array.

6. Accessing control array controls using the controls collection

7. Creating controls at runtime & Control arrays

8. Control collection vs Control Array

9. Control Arrays in Custom Controls

10. Creating Controls at runtime & Control Arrays

11. Adding Controls to Control Arrays at runtime

12. ActiveX - How do I expose a Control Array to the Control Author

 

 
Powered by phpBB® Forum Software