using substacks or cards

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
jalz
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 340
Joined: Fri Sep 12, 2008 11:04 pm

using substacks or cards

Post by jalz » Fri Jan 13, 2012 10:34 pm

Hi Guys,

Im fairly new to LiveCode after taking the plunge. Find it not too bad actually after coming from a different background and Ive got my first db table working ok.... still working out how to do relationships and add two records (parent, and child) together with the primary keys so they are both related....

My main question is on cards and substacks and trying to understand them. At the moment my application will have a number of tables, Customers, Contacts, Suppliers, Invoices etc. Now as far as I can see I should have a main stack, but then should I have a substack for the Customer data (including contacts and addresses) and then another substack for Suppliers, or shall I structure it so that I just have loads of cards in a my mainstack.

If have them as cards, can I later change them to substacks or similarly if Ive created lots of substacks, can I 'export' them out as cards.

Any advice would be great.

Many thanks

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: using substacks or cards

Post by Mark » Sat Jan 14, 2012 12:01 pm

Hi,

If you want to display multiple windows, then you need stacks and substacks. If you want to have an easy way to switch views within one window, then you need cards. Moving cards to separate stacks can be very cumbersome if you have many scripts in place.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply