LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to batch-change the font size of many listbox item names at once?

Solved!
Go to solution

Are you sure that your code -although compiled- does work? I am personnaly getting the attached error message... (Type mismatch error 1057)

0 Kudos
Message 11 of 15
(1,141 Views)

If the control is not a listbox, then you aren't going to be able to cast the reference to a list box.

 

What you need to do is check the error wire coming out of the more specific class function.  If no error, then proceed.  If there is an error, do nothing.

 

It looks like the codes is already doing a check to see if the classname matches a list box.  So you should just put the "To More Specific Class" inside the case structure you have now.

0 Kudos
Message 12 of 15
(1,137 Views)
Solution
Accepted by topic author Christ0phe

Yes, I'm sure 🙂
You can't transform numeric (for example) reference into listbox ref.
You should use class modifier only for correct references. I.e. move this function into case frame.

Message 13 of 15
(1,135 Views)
Hello by any chance did you check the code in this post and let me know why it doesn't work?
http://forums.ni.com/t5/LabVIEW/How-to-batch-change-the-font-size-of-many-listbox-item-names-at/m-p/...
Thanks
uday
0 Kudos
Message 14 of 15
(1,111 Views)

@udka wrote:
Hello by any chance did you check the code in this post and let me know why it doesn't work?
http://forums.ni.com/t5/LabVIEW/How-to-batch-change-the-font-size-of-many-listbox-item-names-at/m-p/...

Because AllOdj[] can cantain decoration's references

ctrls.png

Message 15 of 15
(1,099 Views)