I've scratched my head for a week on this. Any ideas on what might be going wrong or how I can test it?
Livecode 9.0, Windows 10.
I'm using a multidimensional array tArray and I'm having problems with a single element. Basically I'm trying to create tab delimited data out of certain values for each element in the array, for example
for ID 0001
tArray["ID"]["ID"] = 0001
tArray["ID"]["title"] = words
tArray["ID"]["EN Description"] = fox,box,talks,locks
for ID 0002
tArray["ID"]["ID"] = 0002
tArray["ID"]["title"] = numbers
tArray["ID"]["EN Description"] = 343,632,735,121
For some reason, unlike all the other elements in the array, one element "EN Description" always yields empty. Of course, I assumed that I had spelled something incorrectly, but I've checked a thousand times and there's nothing inconsistent. I've even renamed the variable and the problem remains.
Code: Select all
repeat for each element y in tArray
put the keys of y into tKeys --yields multiple lines including "EN Description"
if y["EN Description"] is empty then --always triggered, even though I can plainly see a string of text in my dubug window
put y["ID"] && y["title"] & return after tData --ID and title values are found, no problem
else
put y["ID"] && y["title"] & ":" && y["EN Description"] & return after tData
end if
end repeat
Thanks,
Ivan