Re: How to render a two-dimensional array correctly with empty/missing 'cell' elements?

2020-12-30 Thread Keith Clarke via use-livecode
Hi Alex, Thanks for the response and suggested code - the change from iterating through array column items in each row to the header row[0] keys was the enlightenment I needed... “Eureka!" :) A couple of tweaks and it’s working very nicely! function displayArray @pArray local tLineItem, tTag

Re: How to render a two-dimensional array correctly with empty/missing 'cell' elements?

2020-12-30 Thread Alex Tweedly via use-livecode
Hi Keith here's a quick answer typed into email (i.e. not tested at all, sorry) function displayArray @pArray # create variables that point to the line and column of the array local tLineItem, tColumnItem # create a variable that stores the output for printing local tPrintLine put empt

How to render a two-dimensional array correctly with empty/missing 'cell' elements?

2020-12-30 Thread Keith Clarke via use-livecode
Hi folks, I’m using LiveCode to parse a set of xml files with varying subsets of tags (dmarc reports) into a CSV file. The utility iterates through the files in the folder and the lines of the files, to identify unique opening tags and their content, all of which get parsed into an array: - Tag