I think the problem is with your repeat loop.All the data is written into the same key: theDataA[1]. So you're continuously overwriting the same key with the the loop data.
You should have an inrememtal variable fore the the root key.
This should work:
CODE:
repeat for each line tLine in tlist if item 1 of tlist is a number then put item 2 of tlist into theDataA[1]["FirstName"] put item 3 of tlist into theDataA[1]["Title"] put theImageFolder & "close_window_48px.png" into theDataA[1]["Image URL"] end if end repeat
You should have an inrememtal variable fore the the root key.
This should work:
CODE:
local x // initially empty / zerorepeat for each line tLine in tlist if item 1 of tlist is a number then add 1 to x // will start from 1 and increment every loop put item 2 of tlist into theDataA[x]["FirstName"] put item 3 of tlist into theDataA[x]["Title"] put theImageFolder & "close_window_48px.png" into theDataA[x]["Image URL"] end ifend repeat
Statistics: Posted by stam — Fri Jul 12, 2024 6:59 pm