mIRC Home    About    Download    Register    News    Help

Print Thread
#200972 16/06/08 01:32 AM
Joined: Oct 2007
Posts: 214
B
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.
Joined: Feb 2006
Posts: 181
C
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

Joined: Oct 2007
Posts: 214
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Oct 2007
Posts: 214
Perfect!,

Works like a charm, thanks for the help.

Cheers

Jay


Link Copied to Clipboard