Split to Array on Repeat Skips Every Other Line??
Sivakatirswami
katir at hindu.org
Mon May 16 02:00:40 EDT 2005
Incoming data stored in a global and then try to split this on a loop...
every other line on output is empty.
global gSomeData # which has six lines of data
repeat for each line x in gSomeData
split x with "|" and tab
put x["Project"] & tab & (x["hours"] +round(x["hour-fraction"],2))
& tab & x["Fund_Category"] & cr after tLog
end repeat
put tLog
returns:
Online-Donations 5.41 Public Services
0
Digital-Dharma-List 6.5 Public Services
0
Publishers-Desk-Interface 6.75 Funded Projects
0
Every other line is skipped!
???
I *can* re-do this using an itemdel algorithm and skip the split to
array,
but using these little arrays is so much more efficient (if it worked
of course)
Sivakatirswami
More information about the use-livecode
mailing list