Search found 25 matches

by AzTheBest
Mon Jun 20, 2016 2:44 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: LiveCode app containing another app inside?
Replies: 3
Views: 3501

Re: LiveCode app containing another app inside?

This may be possible with LC, at least for desktop apps, I think even LC does this with its updater app.

But you are talking about "device", so you mean mobile?
I highly doubt this for iOS apps! :D

BTW:
Please consider to avoid writing like you talk ("ur" etc...) because:
1. this may confuse ...
by AzTheBest
Mon Jun 20, 2016 12:27 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: LiveCode app containing another app inside?
Replies: 3
Views: 3501

LiveCode app containing another app inside?

so i was wondering is it possible in livecode?

for example:

you made a app in livecode it inside ur device
you run it
you have a button and it opens another app which already installed in ur device on ur stack? :?
by AzTheBest
Sat Jun 18, 2016 8:31 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Basket help
Replies: 48
Views: 45842

Re: Basket help

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 ...
by AzTheBest
Sat Jun 18, 2016 8:02 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Basket help
Replies: 48
Views: 45842

Re: Basket help

Klaus wrote:What does the error dialog tell you?
by AzTheBest
Sat Jun 18, 2016 7:46 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Basket help
Replies: 48
Views: 45842

Re: Basket help

I would recommend to use the correct syntax as Sturgis suggested:
...
dispatch "additem" to field "table" of card 8 of stack "Restraunt Template" WITH "Chicken Steak","",5
...
And if that does not work I will not ask a 6th time for the script of your handler "additem" 8)

okay i did that and it ...
by AzTheBest
Sat Jun 18, 2016 7:31 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Basket help
Replies: 48
Views: 45842

Re: Basket help

would u recommend any other way :?
by AzTheBest
Sat Jun 18, 2016 7:13 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Basket help
Replies: 48
Views: 45842

Re: Basket help

Code: Select all

dispatch "additem" "Chicken Steak","",5   to "table" of card "8" of stack "Restraunt Template"
but where do i get rid of the quotes sorry for a pain :oops:
by AzTheBest
Sat Jun 18, 2016 7:07 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Basket help
Replies: 48
Views: 45842

Re: Basket help

We might STILL take a look at your "additem" handler, as I already wrote! 8)

BUT:
dispatch "additem" "Chicken Steak","",5 to "table" of card "8" of stack "Restraunt Template"
1. You need to supply the TYPE of object that you are addressing:
... to FIELD "table"...
or:
... to GROUP "table ...
by AzTheBest
Sat Jun 18, 2016 6:59 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Basket help
Replies: 48
Views: 45842

Re: Basket help

okay i edited my code thanks but still no luck haha

to anwser ur question it is a basic table field :|
by AzTheBest
Sat Jun 18, 2016 6:39 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Basket help
Replies: 48
Views: 45842

Re: Basket help

You can use "dispatch" or "send" for this. Look earlier in this thread for an example using dispatch.

dispatch "addItem" to <where do you want it go go? " with the info you want to go along goes here.

For example if you had a command that adds 2 numbers on a different stack, in a button on a ...
by AzTheBest
Sat Jun 18, 2016 6:06 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Basket help
Replies: 48
Views: 45842

Re: Basket help

a button has this code

Code: Select all

additem "Chicken Steak","",5 
this code is in stack 8 and goes in to table called "table" in stack 8

i just want to know how i can move the button different stack e.g stack 1 and it input the data into stack 8 :|
by AzTheBest
Sat Jun 18, 2016 5:07 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Basket help
Replies: 48
Views: 45842

Re: Basket help

hi can anyone help me with a code i cant seem to find one or im not doing it right

i have a button which sends data into table which is in stack 8

However i have copied the button and code from stack 8

in stack 1. i have copied the button from stack 8 (note:the table is in stack 8)
and when i ...
by AzTheBest
Mon May 09, 2016 10:07 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Basket help
Replies: 48
Views: 45842

Re: Basket help

hey man thanks i kinda like this however is it possible not to get the blue line for example after 1 interval each it highlghts it blue?
by AzTheBest
Mon May 09, 2016 9:09 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Basket help
Replies: 48
Views: 45842

Re: Basket help

set the dgdata of grp "main" to empty

put "Chicken" into theDataA["Main Menu"]


put "5" into theDataA["Cost"]


put 1 into theLineNo

dispatch "addData" to group "main" of card "8" of stack "Restraunt Template" with theDataA,theLineNo


put the result into theNewIndex



thats the code ...
by AzTheBest
Mon May 09, 2016 8:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Basket help
Replies: 48
Views: 45842

Re: Basket help

In the message box, type "set the dgdata of grp "yourdatagrid" to empty.

i did that code however now i cant click the "chicken button" mutiple times to make a list going down it keeps deleting and refreshing the table