Setting the contents of a field
Mark Wieder
mwieder at ahsoftware.net
Sat Jul 24 22:50:42 EDT 2010
Ted-
Saturday, July 24, 2010, 7:42:00 PM, you wrote:
> Does it matter if the radio group is on one card and the field is on another?
> For some reason that did not work.
...A) it's probably bad form to give your objects numeric names. Just
confuses the poor compiler and makes extra work for it.
B) Try
if the hilite of btn "Radio3" of group "1223" is true then
put "Yes" into Field "fldWhatever" of card "cardWithField"
else
put "No" into Field "fldWhatever" of card "cardWithField"
end if
But what I would really do instead, given the situation you described,
is put the following into the script of the group:
on mouseUp
local tResult
switch the hilitedButton of me
case 1
put "Yes" into tResult
break
default
put "No" into tResult
end switch
put tResult into field "fldWhatever" of card "cardWithField"
end mouseUp
--
-Mark Wieder
mwieder at ahsoftware.net
More information about the use-livecode
mailing list