Why does this program not work?

2013-06-30 Thread David Milne
Hello all, I would be very grateful if some one can explain to me why the following program does not work. It is a cut down demonstration program designed to show the fault. I made the following in the latest community version of LiveCode. I made a card with a button "button", a field "numbers

Re: Why does this program not work?

2013-06-30 Thread Klaus major-k
HI David, Am 30.06.2013 um 18:11 schrieb David Milne : > Hello all, > > I would be very grateful if some one can explain to me why the following > program does not work. It is a cut down demonstration program designed to > show the fault. > > I made the following in the latest community version

Re: Why does this program not work?

2013-06-30 Thread Mike Kerner
David, One exception to what Klaus said - you can declare global or local variables and have them be visible to all handlers within a particular script - in other words, all handlers within a particular script window, no matter how many handlers are in that script window. So if in a button's scrip

Re: Why does this program not work?

2013-06-30 Thread Dar Scott
People have mentioned that you need the global command or declaration in both the button script and the card script. You can put it within each of the applicable handlers or, once outside of handers before any handlers that need it. However, there are two other potential problems that might cr