Close Substack Question

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
kosmo01
Posts: 4
Joined: Tue Jun 17, 2014 6:57 pm

Close Substack Question

Post by kosmo01 » Tue Jun 17, 2014 7:03 pm

I have a stack opening a substack...

go to stack "Untitled 2" as modal dialog box

In my substack I have the option to:

close this stack

When it goes back to my main stack, I get the following error:

execution error at line 3 (Handler: can't find handler) near "dialog"

The error is on the "go to stack" command. How can I close my substack and go back to the main stack without any errors?

Thanks,
Kosmo

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10053
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Close Substack Question

Post by FourthWorld » Tue Jun 17, 2014 7:28 pm

"Modal" is all you need; the engine is complaining because it doesn't understand the addition of "dialog box" after it.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

kosmo01
Posts: 4
Joined: Tue Jun 17, 2014 6:57 pm

Re: Close Substack Question

Post by kosmo01 » Tue Jun 17, 2014 7:30 pm

Richard,

Something so simple...causing me such a headache! :)

Thank you very much for your help!

Kosmo

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10053
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Close Substack Question

Post by FourthWorld » Tue Jun 17, 2014 7:46 pm

One of the biggest challenges with LiveCode is its simplicity. ;)

One of its greatest assets is its Dictionary.

Neither LiveCode nor its Dictionary are anywhere close to perfect; each has its quirks.

But in general, when in doubt take a moment to look up a token giving you trouble, and most of the time you'll get the answer straight away.

And for the other times, you've already found the second greatest resource: this forum. :)
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply