<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 30 mrt 2009, at 23:50, Alan Munn wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><font class="Apple-style-span" color="#006312"><br></font>You're welcome. Just for completeness, there was a redundancy in the getrow command: it doesn't need to assign a command to the Index, and it certainly doesn't need to assign it twice as in my original example. So a better command would be:<br><br>\newcommand{\getrow}[2]{%<br>\DTLforeach*[\DTLiseq{\myindex}{#2}]{#1}{%<br>\tableA=A,\tableB=B,\tableC=C,\tableD=D}}<br><br> (Of course if having a command for the Index is useful, it could be assigned.)<br><br>Alan<br></div></blockquote></div><br><div><br></div><div>you're probably giving me an exercise</div><div>; )</div><div>the `\myindex=Index` has to be there just once in order to get a correct result.</div><div><br></div><div><div>\newcommand{\getrow}[2]{%</div><div>\DTLforeach*[\DTLiseq{\myindex}{#2}]{#1}{%</div><div>\myindex=Index,\tableA=A,\tableB=B,\tableC=C,\tableD=D}}</div><div><br></div><div>I'll see what I can make of the fp.package. Though it seems this technique works for me at this moment.</div><div>Thanks,</div><div><br></div><div>Gert</div></div></body></html>