Basket help

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

Klaus
Posts: 13878
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Basket help

Post by Klaus » Sat Jun 18, 2016 7:53 pm

What does the error dialog tell you?

AzTheBest
Posts: 25
Joined: Wed May 04, 2016 2:19 pm

Re: Basket help

Post by AzTheBest » Sat Jun 18, 2016 8:02 pm

Klaus wrote:What does the error dialog tell you?
Attachments
code error.png

Klaus
Posts: 13878
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Basket help

Post by Klaus » Sat Jun 18, 2016 8:17 pm

AHA! Finally! :D

OK, looks like an addressing problem.
If you "send" or "dispatch" a handler to an object that is NOT on the current card,
then the engine may not find the objects addressed in that handler!

Change all occurrences of -> ... field "table"
to
-> ... field "table" of cd 8 of stack "Restraunt Template"
if that is the name of that stack, in the script and that will solve your problem!

BTW: It is correctly spelled "Restaurant"! 8)

AzTheBest
Posts: 25
Joined: Wed May 04, 2016 2:19 pm

Re: Basket help

Post by AzTheBest » Sat Jun 18, 2016 8:31 pm

Klaus wrote:AHA! Finally! :D

OK, looks like an addressing problem.
If you "send" or "dispatch" a handler to an object that is NOT on the current card,
then the engine may not find the objects addressed in that handler!

Change all occurrences of -> ... field "table"
to
-> ... field "table" of cd 8 of stack "Restraunt Template"
if that is the name of that stack, in the script and that will solve your problem!

BTW: It is correctly spelled "Restaurant"! 8)
YES! Thank you so much dude haha it worked :D

um oops time to change that :oops:

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”