To More Specific 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 Specific Class.png

The To More Specific Class function Typecasts a reference, such as a control or a type definition, to a more specific class in the inheritance hierarchy.

For example, if Class A inherits from Class B, a variable of type B can hold a value of type A. You can use the function to downcast from type B to type A. If the typecast is invalid, this function returns an error at run time.

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


Best practice


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

See Also

External Links