Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 5th, 2004, 03:06 PM
Authorized User
Join Date: Mar 2004
Location: Atlanta, Ga, USA.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default How do I pass a option button array

Does any one know how to pass an option button array into a sub or function?

I can import a single myfrm.myoption(23) as data type myOptionArray() as optionButton but I can find no way to pull the whole array.

John Pennington
United Parcel Service
w(404) 828 6934
c (770) 714 5975
John Pennington
United Parcel Service
w(404) 828 6934
c (770) 714 5975
Reply With Quote
  #2 (permalink)  
Old March 5th, 2004, 03:18 PM
Friend of Wrox
Join Date: Jun 2003
Location: Alameda, ca, USA.
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts

Declare it as Variant in your method:

public sub Op(myOptionArray as Variant)
  '' do something with myOptionArray(0)....

and pass the option button name

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening Using Option Button anukagni Access 9 June 23rd, 2006 07:10 AM
Option Button help mohiddin52 Access 2 September 2nd, 2005 11:05 AM
Array & Collections, Option Private Module ramk_1978 Beginning VB 6 1 January 19th, 2005 01:06 PM
Option Button & Macro jvanhalderen Excel VBA 2 November 28th, 2004 04:09 PM
How to pass option button array? John Pennington Classic ASP Professional 2 March 8th, 2004 04:41 PM

All times are GMT -4. The time now is 06:29 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.