Transferring Content from Fields via button

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Naggon
Posts: 2
Joined: Sun Feb 22, 2015 3:08 pm

Transferring Content from Fields via button

Post by Naggon » Sun Feb 22, 2015 3:12 pm

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.

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Re: Transferring Content from Fields via button

Post by SparkOut » Sun Feb 22, 2015 4:20 pm

put field "fieldOne" into field "fieldAggregate"
put cr & field "fieldTwo" after field "fieldAggregate"
put empty into field "fieldOne"
put empty into field "fieldTwo"

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10332
Joined: Wed May 06, 2009 2:28 pm

Re: Transferring Content from Fields via button

Post by dunbarx » Sun Feb 22, 2015 4:36 pm

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

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Transferring Content from Fields via button

Post by Klaus » Sun Feb 22, 2015 6:29 pm

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

Naggon
Posts: 2
Joined: Sun Feb 22, 2015 3:08 pm

Re: Transferring Content from Fields via button

Post by Naggon » Mon Feb 23, 2015 7:53 pm

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.

Post Reply