mIRC Home    About    Download    Register    News    Help

Print Thread
Listbox Question #200972 16/06/08 01:32 AM
Joined: Oct 2007
Posts: 214
B
Buggs2008 Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Oct 2007
Posts: 214
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

Last edited by Buggs2008; 16/06/08 01:32 AM.
Re: Listbox Question [Re: Buggs2008] #200983 16/06/08 08:02 AM
Joined: Feb 2006
Posts: 181
C
Crinul Offline
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2006
Posts: 181
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

Re: Listbox Question [Re: Buggs2008] #201014 16/06/08 11:40 PM
Joined: Oct 2007
Posts: 214
B
Buggs2008 Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Oct 2007
Posts: 214
Perfect!,

Works like a charm, thanks for the help.

Cheers

Jay