Loop through Multi-Dimensional Array

Andrew Kluthe andrew at rjdfarm.com
Mon Jun 21 14:50:56 EDT 2010


Getting closer, what this does is put a new element whose key name is the
contents of i and puts pNewName into that element.


So:

Going in:

tleaseData[1]["TenantContact"] value is "Amanda Jo Pence"


the element above remains unchanged but a new element like this is made:

pNewName value is "Amanda Pence" it comes out as:

tleaseData[1]["Amanda Jo Pence"] value is "Amanda Pence"

The second dimensions of elements it is checking are static in number.
Meaning, the number of iterations in the second loop is fixed at 8. But the
key names are strings. :\ So I think I run into the same problem trying to
reference the current second dimension of the array in the second loop.


-- 
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Loop-through-Multi-Dimensional-Array-tp2262924p2263153.html
Sent from the Revolution - User mailing list archive at Nabble.com.



More information about the use-livecode mailing list