Notice also a new attribute introduced in this listing: The keyAttribute attribute, which tells XJConf which element attribute to consider when it sets the keys of the output associative array.
Listing 5 sets the target spreadsheet and worksheet and then creates an arrayof row data containing column-value mappings.
清单5设置了目标电子表格和工作表,然后创建了一个行数据数组,包含列-值映射。
3
One way would be to create an arrayof booleans, one for each line of the original method, and add code that sets the appropriate flag as each line is executed.