I want to see what an array is doing and would
like to show an array in a field.
My attempts (guesses) at how to do this have so
far failed.
Does LC have a "watch window" which will monitor
changes to, say, a variable?
Help appreciated.
Put an array into a field?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Put an array into a field?
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.
Programming powered by coffee.
Re: Put an array into a field?
In the script editor set breakpoints and step through the code. At the bottom of the debugger windowchoose the variables tab.
This will show the values of variables as you step through. In the case of an array you can see the keys and contents by expanding the view with the "disclosure arrow" against the array name.
This will show the values of variables as you step through. In the case of an array you can see the keys and contents by expanding the view with the "disclosure arrow" against the array name.
Re: Put an array into a field?
What Sparkout said.
The debugger is just about the only place you can "see" an array while it still is an array. In order to show it in a field, it must be changed into a ordinary variable first, using the "combine" command.
There is an array world, and a real world. Going from one to the other is simple, but often confuses new users.
You might find a recent thread ("Custom Properties") in the "Talking Livecode " section of this forum , where such things were just discussed. A little experimentation is called for.
Craig Newman
The debugger is just about the only place you can "see" an array while it still is an array. In order to show it in a field, it must be changed into a ordinary variable first, using the "combine" command.
There is an array world, and a real world. Going from one to the other is simple, but often confuses new users.
You might find a recent thread ("Custom Properties") in the "Talking Livecode " section of this forum , where such things were just discussed. A little experimentation is called for.
Craig Newman