08-24-2015 04:15 PM
Hello,
I'd like to pass some initialisation data into my SUD. I'm using SUDDlgShow and then GetArgument in the SUD file. It is working fine when I pass numbers etc.
However, I'd like to pass an object from a custom class. I defined the class in the VBS file and then passed it over.However, the GetArgument function in the SUD then fails with 'Object doesn't support this property or method.
What I'd like to know is please, how do I let the SUD code know the datatype that I am passing to it?
08-24-2015 06:10 PM
Hi Martin,
When I have tried this, the SUD and Script that calls the SUD are in different namespaces.
My approach is to use the put the class into a separate file, and then use a scriptinclude in both Script that called the SUD as well as a scriptinclude in the SUD. That will allow both namespaces to know the class object exists. Still can be tricky to get the object to actually show up with values.
Maybe some of the NI guys will have a example they can throw you.
Paul
08-25-2015 04:54 AM
Thanks Paul, thats working well.