Method offset with no parameters specified returns current row offset with respect to the beginning of the table.
Example $men[^table::create{name
Jack
Joe
Roger
}]
^men.menu{
^men.offset[]-$men.name
}[<br />]
The code will return: 0-Jack
1-Joe
2-Roger
Unlike the computer, human beings tend to count beginning with one, not zero. To make the output of numbered lists more comfortable for human understanding, you may use method line:
^table.line[]
It allows getting the position number in a more comprehensible manner-when the number of the first row equals one. If ^men.line[] is used in the above example, the rows enumeration will start with one and end with three.