On Jun 30, 2006, at 12:46 PM, Charles Yeomans wrote:
On Jun 30, 2006, at 12:25 PM, Chuck Pelto wrote:
Greetings,
I'm still a bit disappointed that there is no simpler way to put
changed data in a GroupBox of RadioButtons into a database.
If RB can automatically deselect all other RadioButtons in a
GroupBox when one of them is selected, it would seem to me that RB
should have a simple Property in the GroupBox Controls that would
identify which RadioButton is selected. This would give us a one-
line call to get that item, as opposed to the multi-line loops
that everyone has suggested as the only way to determine which
RadioButton is selected.
Until REAL Soft implements such a, I suspect simple, modification
I'm considering an alternative....
How does one call a RadioButton Action from another part of an
application?
One does not. It is an event handler and so can be called only
from within RadioButton. Implement the Action event handler to
record the state of the radio buttons and update the database.
Charles Yeomans
If you really feel you must, the correct (and possibly the only) way
is to implement a method that does whatever you were going to do from
the RadioButton.Action event. The only thing you put in the actual
RadioButton.Action is a call to that method. That way, the stuff you
were going to do in the Action is also available from elsewhere via a
call to the method.
Russ Jones
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>