LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to find the size of list box

Solved!
Go to solution

Hi,

I have a list box with 4itmes in that.I want the size of listbox,just up to occupied data in listbox.Is it possible that we can find the size of the listbox?Plz help.

0 Kudos
Message 1 of 8
(3,625 Views)
Solution
Accepted by rita86

Here you go

Listbox.PNG

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 2 of 8
(3,620 Views)

Hello sir,

I want to find the size like if in listbox ,there are 4 Itmes then it should show result 4.

0 Kudos
Message 3 of 8
(3,583 Views)

Here you go ...

 

lbsize.jpg

0 Kudos
Message 4 of 8
(3,576 Views)

Thank you sir.

0 Kudos
Message 5 of 8
(3,567 Views)

There's even a Number of rows-property to simplify things. 😉

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 8
(3,548 Views)

That's not the same thing Yamaeda Smiley Wink

 

The Number of Rows property gives you the size in lines of the control on the screen.

The Item Names property gives you the numbers of entries in the listbox.

 

lblines.jpg

0 Kudos
Message 7 of 8
(3,540 Views)

My bad, i thought that was what he was after. Otoh, you can set Number of rows property to fit the listbox to the number of items. 🙂

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 8 of 8
(3,506 Views)