Jump to content

mane

Members
  • Posts

    1
  • Joined

  • Last visited

mane's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I have a "listSpec" class which is part of some reuse code which contains properties in a name/value format. In a certain utility I need additional functionality for the listSpec class. So I created an "analyzeSpec" class which inherits from the listSpec class. In my utility I load a file which creates the listSpec objects(this is the reuse code). I would then like to convert the listSpec objects into analyzeSpec objects to extend their functionality. I need the runtime value of the listSpec objects to be transfered to the analyzeSpec objects. I tried to use the "to more specific" class function. It compiles correctly, but generates a runtime error stating "LabVIEW: Bad type cast. LabVIEW cannot treat the run-time value of this LabVIEW class as an instance of the given LabVIEW class." Does anybody know how I can achieve my original goal of generating analyzeSpec objects from listSpec objects while maintaining the runtime value of the original listSpec objects? Or am I in a completely wrong neighborhood and should try a different implementation method????
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.