CPeng Posted August 11, 2011 Report Share Posted August 11, 2011 I've inherited some code and there's an odd control on the front panel. It's an array on the front panel but seemingly an integer on the block diagram. LV 8.2.0 What is this? what.vi Quote Link to comment
asbo Posted August 11, 2011 Report Share Posted August 11, 2011 It's a Multicolumn Listbox. If you right-click the control on the front panel and go to properties, that dialog will have the control type in the title bar. Alternatively, right-click the control on the block diagram, select Create, then Reference and the reference you drop will also have the name of the control type visible. The integer value you can read/write is the 0-based index of the row which is selected. 1 Quote Link to comment
CPeng Posted August 11, 2011 Author Report Share Posted August 11, 2011 Awesome thanks for the info. All these years and I've never seen one of those things. Why would you use this over an array of integers? Quote Link to comment
asbo Posted August 11, 2011 Report Share Posted August 11, 2011 Awesome thanks for the info. All these years and I've never seen one of those things. Why would you use this over an array of integers? It doesn't just support integers, each cell is actually a string. You use property nodes to get/set these values. It's a very powerful control if used properly, go to Help > Find Examples... and search for listboxes. Check out the Properties Tutorial example. Quote Link to comment
Jordan Kuehn Posted August 12, 2011 Report Share Posted August 12, 2011 It doesn't just support integers, each cell is actually a string. You use property nodes to get/set these values. It's a very powerful control if used properly, go to Help > Find Examples... and search for listboxes. Check out the Properties Tutorial example. Very powerful also = very finicky and frustrating when not used properly. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.