Do a count in a listbox...

Batch, ASP, JScript, Kixtart, etc.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
rasimmer
Posts: 182
Joined: Fri Jan 30, 2009 12:37 am

Do a count in a listbox...

Post by rasimmer » Thu Apr 23, 2009 1:48 am

I have a ListBox called lst_Right and I want to count the total number of items in the listbox, not selected, all of the objects in box. I've tried a bunch of different properties (VBScript) and cant' find the right one:

MsgBox lst_Right.ListCount MsgBox lst_Right.Item.CountMsgBox lst_Right.Items.CountMsgbox UBound(lst_Right)

User avatar
rasimmer
Posts: 182
Joined: Fri Jan 30, 2009 12:37 am

Do a count in a listbox...

Post by rasimmer » Thu Apr 23, 2009 1:48 am

I have a ListBox called lst_Right and I want to count the total number of items in the listbox, not selected, all of the objects in box. I've tried a bunch of different properties (VBScript) and cant' find the right one:

MsgBox lst_Right.ListCount MsgBox lst_Right.Item.CountMsgBox lst_Right.Items.CountMsgbox UBound(lst_Right)

Locked