ceties Posted January 29, 2008 Report Share Posted January 29, 2008 Hi all, I just started with Xcontrols. I am trying to create my own Listbox and I don't want to have all the properties code in "display state change" of Facade.vi. So I put a reference of the Listbox into State 1.vi because I thought that this way I could change the properties of the control in the property Vis. But I still get "Object reference is invalid" error. Why? I initialized the reference in "Exec state change". So Why? Thank a lot guys! LV 8.5, WinXP Quote Link to comment
Ton Plomp Posted January 29, 2008 Report Share Posted January 29, 2008 QUOTE(ceties @ Jan 28 2008, 04:53 PM) Hi all, I just started with Xcontrols. I am trying to create my own Listbox and I don't want to have all the properties code in "display state change" of Facade.vi. So I put a reference of the Listbox into State 1.vi because I thought that this way I could change the properties of the control in the property Vis. But I still get "Object reference is invalid" error. Why? I initialized the reference in "Exec state change". So Why? Thank a lot guys! LV 8.5, WinXP In the 'Exec state change' you should set the 'State Changed?' boolean in the 'Action' cluster to true: For more info see the XControl wiki. Ton Quote Link to comment
ceties Posted January 29, 2008 Author Report Share Posted January 29, 2008 Thanks a lot. It's in short time second stupid question regarding LabVIEW :headbang: Nice link btw! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.