Page 1 of 1
Put an array into a field?
Posted: Sat Dec 05, 2015 8:51 pm
by RossG
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.
Re: Put an array into a field?
Posted: Sat Dec 05, 2015 8:58 pm
by SparkOut
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.
Re: Put an array into a field?
Posted: Sun Dec 06, 2015 6:36 am
by dunbarx
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