Starting a livecode substack first in windows app

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
shawnblc
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 342
Joined: Fri Jun 01, 2012 11:11 pm
Location: USA

Starting a livecode substack first in windows app

Post by shawnblc » Tue Sep 08, 2020 7:31 pm

I've been trying to start my substack first, but not having any luck. Any assistance is appreciated.

Code: Select all

set the stack of me to stack "mysubstack"

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9824
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Starting a livecode substack first in windows app

Post by FourthWorld » Tue Sep 08, 2020 7:44 pm

You could clone the substack and then set the mainstack of the other stacks to it to make them substacks of it.

Or if you're just thinking of presentation to the user, this in the card script of the current mainstack should suffice:

Code: Select all

on preOpenStack
   toplevel "Substack"
   close stack "Mainstack"
end preOpenStack
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9648
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Starting a livecode substack first in windows app

Post by dunbarx » Tue Sep 08, 2020 7:45 pm

Hi.

What does "set the stack of me" mean? What did you intend? It is not any LC property. Did you mean to set the "mainStack"?

Craig

shawnblc
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 342
Joined: Fri Jun 01, 2012 11:11 pm
Location: USA

Re: Starting a livecode substack first in windows app

Post by shawnblc » Tue Sep 08, 2020 9:14 pm

@dunbarx, correct.

My substack is where a user would enter their serial number, then go to the mainStack.
I don't use LC as much as I should, more of a php/mysql and low-code tool user.

@fourthworld,

Thanks. I'm trying to work your idea into my stack. I'll update ya.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”