LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
Put 0 into Blockcount
Put 0 into LineCount
set the itemDelimiter to space
Put Blockcount & return after CleanData
repeat for each line tLine in tFileData --compound statement that sets the new var tLine to the value of present line
Put LineCount+1 into LineCount
If the length of tline >10 then -- only process lines containing data
repeat with tItemNo = 1 to 8
put "<" & item tItemNo of tLine & ">" after CleanData
end repeat
If (LineCount is 5) then -- DataFile stores each block on 5 lines
put Blockcount+1 into Blockcount
Put return & "Block -" & Blockcount & return after CleanData
put 0 into LineCount
Else
put return after CleanData
End if
end if
end repeat
put CleanData after field debug
Well, it's hard to get that syntax *too* wrong. <g>
The first law of quality assurance is that you can't find the bugs in your own code - it takes a set of eyes that aren't intimately familiar with the way things *should* work.