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
(2,832 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
(2,827 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
(2,790 Views)

Here you go ...

 

lbsize.jpg

0 Kudos
Message 4 of 8
(2,783 Views)

Thank you sir.

0 Kudos
Message 5 of 8
(2,774 Views)

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

/Y

G# - Award winning reference based OOP for LV, for free! ADDQ VIPM Now on GitHub
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 8
(2,755 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
(2,747 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! ADDQ VIPM Now on GitHub
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
Certified-LabVIEW-Developer
0 Kudos
Message 8 of 8
(2,713 Views)