Help! Passing option arrays to sub 
Author Message
 Help! Passing option arrays to sub

I have a form with an option button array (Option1()).  I want to pass
this array to a subroutine, passing the Option1 array.  If there were
no array, it would look like this:

     Sub ProcessOptions (a as OptionButton)
        a.Caption = .....
        ...
     End Sub

     Call ProcessOptions Option1

My question is, how do I code with an array.  I'm not getting any help
from the books, knowledgebase, on-line help.  Specifically:

1.  Do I code the Sub like ... (a as OptionButton())?
2.  When I call it:  Call ProcessOptions Option1()?

I would not be dealing with the Index or user events.  I just want to be
able to set up the option buttons on the form (caption, visible, enabled,
etc.).   Everything I've tried doesn't work.  

Any ideas would be appreciated.
**********************************************************
Douglas Sanford         * "To do is to be!" - Socrates   *

                        * "Do be do be do!" - Sinatra    *
**********************************************************



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

 Relevant Pages 

1. Help! Problem passing string array to sub

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

3. Help passing array to bas module sub

4. pass an array as function/sub argument

5. Question on passing array parameters to VB.NET Sub/Function

6. Problem in passing datarow array from one sub to other

7. Passing Arrays from Sub to Program

8. Passing Property Arrays to Sub Routines

9. vb5 Passing an array of type MENU to a Sub

10. How to pass array into Sub?

11. Passing Control Arrays to Sub-Procedures

12. Newbie question about passing arrays into a sub routine

 

 
Powered by phpBB® Forum Software