DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing data to SUD using GetArgument & custom class

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?

0 Kudos
Message 1 of 3
(4,073 Views)

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

Message 2 of 3
(4,067 Views)

Thanks Paul, thats working well.

0 Kudos
Message 3 of 3
(4,049 Views)