Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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" ... :(

share|improve this answer
    
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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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