Page 1 of 1

Transferring Content from Fields via button

Posted: Sun Feb 22, 2015 3:12 pm
by Naggon
Hi

I was wondering if it is possible to Transfer Contents (Written text from the user) from one Text field to another so that they are all collected in the other Field while the first one clears on card close.

Thank you for your help.

Re: Transferring Content from Fields via button

Posted: Sun Feb 22, 2015 4:20 pm
by SparkOut
put field "fieldOne" into field "fieldAggregate"
put cr & field "fieldTwo" after field "fieldAggregate"
put empty into field "fieldOne"
put empty into field "fieldTwo"

Re: Transferring Content from Fields via button

Posted: Sun Feb 22, 2015 4:36 pm
by dunbarx
What Sparkout said.

Where are you on the journey of learning LiveCode? I think it an excellent method to jump right in with simple tasks. But have you read the lessons and the user guide? Looked at the dictionary? Do write back...

Craig Newman

Re: Transferring Content from Fields via button

Posted: Sun Feb 22, 2015 6:29 pm
by Klaus
HI Naggon,

1. welcome to the forum! :D

2. You might want to check these great learning resources for the basics of LC:
http://www.hyperactivesw.com/revscriptc ... ences.html

Best

Klaus

Re: Transferring Content from Fields via button

Posted: Mon Feb 23, 2015 7:53 pm
by Naggon
Thank you guys for the quick replies.
I will check out the links you posted and try the script.
I just sort of started to dive a bit deeper into the livecode capabilities.
*edit:
I am having trouble searching for the right terms in the Dictionary since my previous knowledge with coding ist very limited.