Good call Devin, I found a way to do it using hilitedButton, coupled with the fact that comparing variables obeys the casesensitive setting.
I have a repeat loop that cycles through all the buttons in the group, puts their short name into a variable, compares the short name variable with the name I'm looking for and sets the hilitedButton of the group if the names match. Thanks for the idea! Pete Molly's Revenge <http://www.mollysrevenge.com> On Fri, Jul 1, 2011 at 4:04 PM, Devin Asay <[email protected]> wrote: > Pete, > > Does it work to set the hilitedButton instead of the hilitedButtonName? The > former uses the number of the button, I believe. > > Devin > > On Jul 1, 2011, at 5:00 PM, Pete wrote: > > > I have two radio buttons whose names are identical except one is in > > lowercase and the other is in uppercase. They are in a group which > should > > prevent more than one of them being set. > > > > The following statement ends up setting the hilite of both buttons: > > > > set the hilitedbuttonname of *group* "xyz" to tVar > > > > I tried setting the casesensitive property but the dictionary clearly > states > > that it doesn't affect object names. There's a valid reason for the > buttons > > being named that way and I'd rather not change them unless I have to - > any > > ideas on how to avoid this problem? > > > > Pete > > Molly's Revenge <http://www.mollysrevenge.com> > > _______________________________________________ > > use-livecode mailing list > > [email protected] > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > Devin Asay > Humanities Technology and Research Support Center > Brigham Young University > > > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
