From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,230 Views)
Solution
Accepted by topic author 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,225 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,188 Views)

Here you go ...

 

lbsize.jpg

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

Thank you sir.

0 Kudos
Message 5 of 8
(3,172 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,153 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,145 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,111 Views)