LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about typecast to more generic Class

Solved!
Go to solution

I have controls refnum and pages refnum and I want to know which way is better:  

 

1) let LabVIEW doing the job

 LV Typecast.jpg

 

or 2) use "typecast to more generic Class". 

Typecast.jpg

 

In both case the VI works properly. 

 

Thanks

 

Jean-Marc

0 Kudos
Message 1 of 4
(3,125 Views)
Solution
Accepted by topic author J-M

"which is better..."

 

I can't say definatively but I will generally let LV do the up-casting to build an array as you have illustrated.

 

 

EDIT

 

I just noticed your case apperas to have 50 plus numeric cases. What are you doing with that code? We may be able to offer alternatives (maybe).

 

Ben

Message Edited by Ben on 10-06-2009 01:36 PM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 4
(3,111 Views)

Thanks for your reply Ben.

 

I need the controls refnum in the visible part of the pane (for the translation english to french and french to english ).

 

 

Jean-Marc

0 Kudos
Message 3 of 4
(3,100 Views)

The number in the case structure is the Class ID of the generic refnum.

 

Class ID.jpg

 

Jean-Marc

Message 4 of 4
(3,092 Views)