Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 5th, 2004, 03:06 PM
Authorized User
 
Join Date: Mar 2004
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
 
Old March 5th, 2004, 03:18 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Declare it as Variant in your method:

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

and pass the option button name

Marco





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.