Thanks for the confirmation Chris - and the insights into how to create an
array of discrete containers (such as a grid), when that becomes appropriate.
Best,
Keith..
On 24 May 2011, at 14:56, Nonsanity wrote:
> Arrays are the way to go there, but if you really do need to work with
> constr
Arrays are the way to go there, but if you really do need to work with
constructed variable names, do is probably the only way to set such a value.
The following code clip shows how you can get the value of a constructed
variable name:
put 111 into var1
put 222 into var2
put 2 into whichVar
put me
Thanks, Jim, The 'do' command looks useful as a mechanism for combining
disparate elements - I'll add it to my armoury.
The multi-dimensional array should keep the XML strings related but separate
for post processing.
I'm also setting a custom property on the stack as the array - to provide
si
On May 24, 2011, at 2:12 AM, Keith Clarke wrote:
Hi folks,
I have a repeat loop with tCycle = 1 to 10 and for each repeat, I
need to put something into a new variable, specific to the
particular cycle - tResultCycle1, tResultCycle2... tResultCycle10.
How does one script the creation of a
Yes, an array seems to be the way to go, as LiveCode doesn't throw errors
(yet!) if I use...
repeat with tCycle = 1 to 10
put "some ugly returned XML string" into tResult[tCycle]["Response"]
end repeat
Thanks for listening! :-)
Best,
Keith..
On 24 May 2011, at 10:48, Keith Clarke wrote:
> Than
Thanks for responding John but in my scenario, I can't use 'after' in a single
variable. Each loop cycle is calling a web service and returning an XML string
that I need to place in a unique variable, related to the loop cycle, for
subsequent aggregation.
Thinking about it, maybe I could put al
Not too sure I fully understand... but is something like this what you are
after ?
on mouseUp
put "jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec" into monthList
repeat with count = 1 to 12
put (item count of monthList & count) & cr after theList
end repeat
put theLis
Hi folks,
I have a repeat loop with tCycle = 1 to 10 and for each repeat, I need to put
something into a new variable, specific to the particular cycle -
tResultCycle1, tResultCycle2... tResultCycle10.
How does one script the creation of a unique variable for each loop, as
LiveCode doesn't see