Jump to content

To More Generic Class function: Difference between revisions

From LabVIEW Wiki
No edit summary
mNo edit summary
 
Line 1: Line 1:
{{stub}}
{{stub}}
{{TOCright}}
{{TOCright}}
{{LabVIEW Palette Object Information|palette=Functions Palette/Programming/Cluster, Class, and Variant{{!}}Cluster, Class, and Variant palette|type=function}}
{{LabVIEW Palette Object Information|palette=Functions Palette/Programming/Cluster, Class, and Variant{{!}}Cluster, Class, and Variant palette|type=function|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.
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.

Latest revision as of 20:13, 29 June 2020

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