Jump to content

To More Generic Class function

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

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