Jump to content

Script New LV Class with Private Data


chris754

Recommended Posts

Posted (edited)

Hi all,

 

First time poster. I have been trying to create a new class in LV via scripting. I can successfully create the class, and add private data members to that class. However, when I try to creat accessor methods the unbundle feature is broken. I can fix this by opening the priavte data control and saving it. Any ideas how to fix this problem? I have attached my code. I have tried saving the control a number of ways, as well as the class, but can't seem to make it work.

 

Thanks for any insight. Let me know if you have any questions.

 

Chris

Class Wizard.zip

Edited by chris754
  • Like 1
Posted

I didn't look at the code, but I'm guessing that this is the only way (because LV needs the class to be saved for some reason). If you look at the UI, you will see the same thing - you can't create accessors before you save the class.

Posted (edited)

<p>Since the version under your avatar says 2011, I provided links to the 2011 version.</p>

<p>And the first link is to a rar file. No need to install anything else.</p>

Edited by todd
Posted

I missed the rar file. Seems like they are basically doing what I am doing, with the exception of using a copy/paste. Not sure if that will make a difference. Thus far no luck :(.

Posted

Figured it out! The copy/paste method works, weird that adding a directly to the cluster does not work. But I create a separate cluster and paste over the existing private data cluster and it does work.

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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