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?
I'm considering daisy-chaining calls to the RadioButtons in a GroupBox
so that when on is acted upon, it will have the data for itself
changed in the database and then call all the others in the GroupBox
to update their status.
So, how would one write the line to call the action?
rb_no.Action() and self.rb_no.Action()
Don't seem to work.
Regards,
Chuck
Hi,
I'm certainly no expert, but couldn't you just track the change using a
global variable, which is updated via the radiobutton's index when
Action is fired? Maybe even create a method to convert the index result
to whatever data you need, then update your global(s), and have that
method called when Action fires.
-Fargo
_______________________________________________
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>