At 09:27 AM 5/2/2007, you wrote: > > >I'd suggest copying the control array (which is not an array at all) > > >to an array, and passing the array to the function. > > > > But that defeats the purpose, which is to wrap the task of finding > > out which Radio Button is selected without writing the If/Select in > > every case. > >No it doesn't, if you use a general function to copy the control array >into a real array, which you can then pass to a generic function. The >trouble here will be type safety -- what type should this array be? If >it's "Control()" then you won't be able to pass it to a function that >expects RadioButton().
Thanks for the tip; really the main issue was passing the control array. Your "hack" solves the issue - pass a single RadioButton (always the first, of course, but it could be any of them), compare the control Names in the Window Control Array to find the control array "behind RB's back" and do it there. So the function (the way I'd write it) would be: Index = GetOptionValue(RadioButton1(0), frmMyWindow) * * * * * * * * * * * * * * * * * * * * * * * * * * * | Garth Hjelte | | Customer Service Representative, President | | Chicken Systems, Inc, Rubber Chicken Software Co. | | 714 5th Street SE | | Willmar, MN 56201 USA | | | | 800-8-PRO-EPS Toll Free Order Line (US Only) | | 320-235-9798 Tech Support, Sampler Questions | | International Line | | 360-838-7689 Fax | | Product Sales: [EMAIL PROTECTED] | | Product Support: [EMAIL PROTECTED] | | Sampler Q+A: [EMAIL PROTECTED] | | Web Page: www.chickensys.com | * * * * * * * * * * * * * * * * * * * * * * * * * * * _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
