Challenge: how to set the text of a field
Mark Wieder
mwieder at ahsoftware.net
Fri Mar 29 16:49:52 EDT 2013
David Bovill <david at ...> writes:
> or if I want a user want to create and index with a script:
>
> repeat with cardNum = 1 to the number of cards
> > put the title_Text of group 1 of card cardNum & CR after myIndex
> > end repeat
Maybe I'm not following what you want to do here... a custom property of a
shared group is also shared, so you can't have multiple values without, as Pete
said, creating an array for them.
If you just want to get the text of a field in a shared group, though, then the
following code works for me in a behavior button (the shared group contains two
fields and you put a card number into field 2):
on mouseUp
local tCard
put field 2 into tCard
put the text of field 1 of card tCard & cr after msg
end mouseUp
so I guess I don't understand what the problem is.
--
Mark Wieder
mwieder at ahsoftware.net
More information about the use-livecode
mailing list