To More Specific Class function: Difference between revisions
Appearance
Started page |
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 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. | 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. | ||
Latest revision as of 20:13, 29 June 2020
| |
This article is a stub. You can help LabVIEW Wiki by expanding it. Please improve this article if you can. |
| Object information | |
|---|---|
| Owning palette(s) | Cluster, Class, and Variant palette |
| Type | Function |
| Requires | Basic Development Environment |
| Icon | |
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.
Usage
| |
Specific use cases for this function. |
Best practice
| |
Add other best practices for this function. |
History
| |
History information is needed. What changes have occurred over previous versions? |
| Version | Change(s) |
|---|---|
| More info to come. |
See Also
| |
Add links to internal wiki pages that would also help. |
External Links
| |
Add links to external resources that would also help. |