On May 2, 2007, at 2:25 PM, Jim Payne wrote:

> Charles Yeomans wrote:
>> On May 2, 2007, at 1:34 PM, Jim Payne wrote:
>>
>>
>>> The original poster wrote:
>>>
>>>> At 12:30 PM 5/1/2007, you wrote:
>>>>
>>>>
>>>>
>>>>>> How do you pass Control Arrays to a external function?
>>>>>>
>>>>>> I am dealing with the classic simple task of finding which Radio
>>>>>> Button is selected, and wrapping that up in a function.
>>>>>>
>>>>>>
>>> There were several suggestions, but wouldn't it be easier to  
>>> subclass
>>> radio button?  First define a global variable to hold a string , say
>>> App.RadButTxt  as string, and in the action event of the subclassed
>>> radio button say:  App.RadButTxt = me.Text
>>>
>>> Now there is no need to search for which button is hit.
>>>
>>
>> Instead you have to handle the problems that such a design
>> introduces.  For example, suppose you change the text of the button
>> at some point in development.  Then you have to remember to change
>> the code that depends on this value.  And you should wonder whether
>> the value was accidentally changed by another object.
>>
>> Charles Yeomans
> No, no Charles.  me.text  will return the current actual text of  
> the button.



Sure.  And then you assign it to App.RadButTxt.  Now, when you want  
to determine the selected button, how do you do that?

Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to