Q: Passing first (original) element of a control array to a SUB 
Author Message
 Q: Passing first (original) element of a control array to a SUB

I am trying to write a general procedure to dynamically create several
Option Buttons inside of a frame.  At design time, I create the frame
and one Option Button as a control array.  I wrote a procedure to
create the other option buttons and resize the frame as needed.  The
problems occurs when I try to pass the Option Array to the SUB.

If I pretend it is an array I get an invalid parameter error at compile
time. If I pretend it is not an array, I get a "control is not an array"
error at run time.

Ideas?  Is it possible?  Are there better ways to do it?

Thanks in advance,

Bob Swarner



Fri, 26 Dec 1997 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. HOWTO: Pass a control array element ?

2. Passing elements in a control array to a function

3. count elements in root, sub root sub-sub root treeview

4. Adding an entry before the first array element

5. First Last Middle Elements in Arrays...

6. Passing Control Arrays to Sub-Procedures

7. Passing control arrays to subs

8. Help how to pass control arrays to sub ??

9. How to pass control arrays to subs

10. Passing an Array of Controls to a Sub

11. Pass control array to sub/function ?

12. Passing Control Array to a SUB/FUNCTION

 

 
Powered by phpBB® Forum Software