The code in the group script reads data from the field "Destination" which is part of the group :
Code: Select all
On DestinationVolume
return field "Destination" of me
end DestinationVolume
Code: Select all
on mouseUp pButtonNumber
dispatch "DestinationVolume" to group "SelectedVolumes"
put the result into tDestinationVol
answer tDestinationVol
end mouseUp
I added a second card with a button. The button uses the following code :
Code: Select all
on mouseUp pButtonNumber
dispatch "DestinationVolume" to group "SelectedVolumes" of card "First"
put the result into tDestinationVol
answer tDestinationVol
end mouseUp
I have attached a demo stack which has additional buttons that read the field contents directly. Both the direct reads work so I don't need to get the dispatch call working but I am interested in knowing what is wrong with my code.
Thanks for reading.
Simon K.