Originally Posted By: Help File

/help $did

If used in the on dialog event, name is optional.
$did(name,id)

The following $did() properties are supported:
...

lines returns number of lines

...

Code:
$did(name,list.box.id).lines