To More Generic Class function

From LabVIEW Wiki
Jump to: navigation, search
Object information
Owning palette(s) Cluster, Class, and Variant palette
Type Function
Requires Basic Development Environment
Icon Cluster, Class, & Variant Palette - To More Generic Class.png

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