mIRC Homepage
Posted By: Buggs2008 Listbox Question - 16/06/08 01:32 AM
Hello,

I would like to know if there is a way to count the number of items in a listbox?

ex.

abc
def
ghi
jkl

Result: (4 items)

Thanks

- Jay
Posted By: Crinul Re: Listbox Question - 16/06/08 08:02 AM
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
Posted By: Buggs2008 Re: Listbox Question - 16/06/08 11:40 PM
Perfect!,

Works like a charm, thanks for the help.

Cheers

Jay
© mIRC Discussion Forums