Jump to content

To More Generic Class function: Difference between revisions

From LabVIEW Wiki
Started page
 
No edit summary
Line 30: Line 30:
{{ambox|text=Add links to external resources that would also help.}}
{{ambox|text=Add links to external resources that would also help.}}


[[Category:Cluster, Class, & Variant Palette]]
[[Category:Cluster, Class and Variant Palette]]

Revision as of 17:47, 23 June 2020

Object information
Owning palette(s) Cluster, Class, and Variant palette
Type Function
Requires Basic Development Environment

The To More Generic Class function typecasts a reference, such as a control or a type definition, to a more generic class in the inheritance hierarchy.

For example, if Class A inherits from Class B, the function upcasts a variable of type A to a variable of type B.

You can use the To More Generic Class function for casting any class hierarchy in LabVIEW, including VI Server refnums, .NET/ActiveX refnums, and LabVIEW Classes.

Usage

Best practice

History

Version Change(s)
LabVIEW 2018 More info to come.

See Also

External Links