Add field content to a script
kray at sonsothunder.com
Sun Jul 6 15:25:46 EDT 2008
On 7/6/08 1:21 PM, "RevList" <RevList at CreaTECHSol.com> wrote:
> I have a field called ItemPath on a card that displays the path to a
> particular card or control in another stack
> For example in one instance, the field is displaying.
> button id 1016 of card id 1002 of stack "/Users/slynch/Desktop/Sample
> Now I want to be able to display the script of that item in another field.
> Essentially, I want to do is create the following script and use the
> literal information in my ItemPath field as part of my script
> Put the script of button id 1016 of card id 1002 of stack
> "/Users/slynch/Desktop/Sample Stack.rev" into fld "Script"
> How can I do that?
Assuming that the field (I'll call it "ObjectRef" for this example) contains
a long identifier to an object and not a short name, you can do this:
put fld "ObjectRef" into tObj
put the script of tObj into fld "Script"
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
More information about the use-livecode