Page 1 of 1
Starting a livecode substack first in windows app
Posted: Tue Sep 08, 2020 7:31 pm
by shawnblc
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"
Re: Starting a livecode substack first in windows app
Posted: Tue Sep 08, 2020 7:44 pm
by FourthWorld
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
Re: Starting a livecode substack first in windows app
Posted: Tue Sep 08, 2020 7:45 pm
by dunbarx
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
Re: Starting a livecode substack first in windows app
Posted: Tue Sep 08, 2020 9:14 pm
by shawnblc
@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.