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: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Basket help

Post by Klaus »

What does the error dialog tell you?
AzTheBest
Posts: 25
Joined: Wed May 04, 2016 2:19 pm

Re: Basket help

Post by AzTheBest »

Klaus wrote:What does the error dialog tell you?
Attachments
code error.png
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Basket help

Post by Klaus »

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 »

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