LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 1448. LVOOP: Referring to child class objects

Solved!
Go to solution
Hi, all.

In a project using LVOOP, I have defined one parent class with several attributes. From this class, there are three child classes that inherit the parent class attributes and also have their own.

Imagine that I instantiate an object belonging to the parent class, and initialize its attributes. Then, I want this same object to belong to a particular child class, and refer to its child-class attributes, of course, keeping the parent-class values. How can I do that?

I tried using  "To more specific class" tool but I get the following: "Error 1448: Bad type cast. LabVIEW cannot treat the run-time value of this LabVIEW class as an instance of the given LabVIEW class."

Exactly the same problem is posted and resolved here http://lavag.org/topic/7473-lvoop-class-variable-as-child/, but because links are temporarily disabled I cannot download and understand the sample code, which shows what it stated there.

Thank you very much,
Francisco.

0 Kudos
Message 1 of 3
(7,833 Views)
Solution
Accepted by topic author Porras

Hi Francisco,

 

Have a look at this thread: http://forums.ni.com/ni/board/message?board.id=170&message.id=362388&requireLogin=False

 

 

Christian

Message 2 of 3
(7,820 Views)

Hey, issue solved.

 

Thank you very much!,

Francisco

0 Kudos
Message 3 of 3
(7,809 Views)