
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