Is there a shorter way?

Mark Schonewille m.schonewille at economy-x-talk.com
Thu Jul 2 09:12:11 CEST 2015


Hi Peter,

// put the long id into a variable
put "First Group" into Field "Company" of card "CompanyData" of stack 
"ShareAnalysis" into myLongID
put the text of myLongID into mySomeText
send "textChanged" to myLongID
set the text of myLongID to mySomeText

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book "Programming LiveCode for the Real Beginner" 
http://qery.us/3fi

LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 7/2/2015 06:52, Peter W A Wood wrote:
> I’m accessing objects in another stack with code like this:
>
> 	put "First Group" into Field "Company" of card "CompanyData" of stack "ShareAnalysis"
>     	send textChanged to Field "Company" of card "CompanyData" of stack “ShareAnalysis"
>
> Is there a shorter way of achieving this?
>
> Even better, is there a way I can store a reference to the Field in a variable and use that instead of Field of Card of Stack?
>
> Regards
>
> Peter
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list