6

I create a table as follows:

\usepackage{datatool}
\begin{document}
\DTLnewdb{MaTable}
\end{document}

This table may be filled with several occurrences of

\DTLnewrow{MaTable}
\DTLnewdbentry{MaTable}{key}{value}

My question is: How can I get the total number of rows of the table?

8

The answer is just

\DTLrowcount{Table}

I'm sorry. I was looking for it in the documentation, but i was reading after the section "creating a new database" ... :(

  • No need to apologize. We've all done this. And it's fine to answer your own question (and accept it once the time limit allows you to.) – Alan Munn Jan 10 '12 at 17:13
  • yes ... in my case, it gave me the opportunity to answer a question ! which happens to me not so often ;) – nicolas roy Jan 10 '12 at 17:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.