Hi
I want to dynamically create a new card then add a field to it, something like
on mouseUp
create card "test"
create field "test" in card "test"
end mouseUp
This of course doesn't work. Any ideas how to do it? Should be very easy but I've just spent the last hour searching the the documentation and forums with no success.
how to add a field to a new created card
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: how to add a field to a new created card
Just use the "create field" command by itself, and the card that has focus will receive it.
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: how to add a field to a new created card
I was thinking that nicksavill could just group a field then select "behave like background" then there wouldn't be a need to create the new field as it would just come with the new card.
But that was a understanding leap on my part.
Simon
But that was a understanding leap on my part.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!