Scott,

on closeField
  set the name of this cd to the text of the target
end closeField

or

on closeField
  set the name of this cd to the text of me
end closeField

The former goes into the card or stack script or a library or backscript while 
the latter goes into the field script.

--
Best regards,

Mark Schonewille

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

How to receive a free Color Converter license http://qurl.tk/kv (read the 
conditions)

On 22 nov 2010, at 16:58, Scott Pepperdine wrote:

> Probably very simple to do.
> 
> I've got a field that is part of a background group, and so will be on every 
> new card created in this stack.
> 
> I want to change the name of the card to the contents of this field after the 
> user has typed something into the field.
> 
> So I presume the script for the field would start with "On Closefield", but 
> then how do I actually change the name of the card to be the contents of the 
> field?
> 
> Thanks,
> --Scott


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to