Buttons
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 3
- Joined: Sat Feb 20, 2016 11:27 pm
Buttons
Hello, i was not sure where to post this, but i have a question about coding in livecode. Is there away to make a button affect a container on a different card.
for example:
Mouse up
put "Hello" into Container "hi"
end Mouse Up"
for example:
Mouse up
put "Hello" into Container "hi"
end Mouse Up"
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Buttons
Yes, just include the card reference as part of the field object specifier, e.g.:RJStriplin wrote:Hello, i was not sure where to post this, but i have a question about coding in livecode. Is there away to make a button affect a container on a different card.
for example:
Mouse up
put "Hello" into Container "hi"
end Mouse Up"
Code: Select all
put "Hello" into field "hi" of cd "SomeOtherCard"
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Posts: 3
- Joined: Sat Feb 20, 2016 11:27 pm
Re: Buttons
I thought it might be something like this, but i was unclear how to go about doing it.FourthWorld wrote:Yes, just include the card reference as part of the field object specifier, e.g.:RJStriplin wrote:Hello, i was not sure where to post this, but i have a question about coding in livecode. Is there away to make a button affect a container on a different card.
for example:
Mouse up
put "Hello" into Container "hi"
end Mouse Up"Code: Select all
put "Hello" into field "hi" of cd "SomeOtherCard"
Thank you so much for your help.
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Buttons
Happy to be of service.
If you need to you can even get and put data in fields of other stacks:
LiveCode is very flexible.
If you need to you can even get and put data in fields of other stacks:
Code: Select all
put "hello" into field "somefield" of cd 1 of stack "someotherstack"
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Buttons
Hi RJStriplin,
1. welcome to the forum!
2. Please check these stacks to understand the basics of Livecode:
http://www.hyperactivesw.com/revscriptc ... ences.html
Best
Klaus
1. welcome to the forum!

2. Please check these stacks to understand the basics of Livecode:
http://www.hyperactivesw.com/revscriptc ... ences.html
Best
Klaus