DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing arguments to script

Solved!
Go to solution
Hi,
I need first create array with one value and then adding strings to the array( all this from dialog o created) .
Then i click a button that run script.
and
i need to pass this array to the script

Thanks
0 Kudos
Message 11 of 12
(2,205 Views)

Hi Oz,

 

If you use ScriptInclude() in the general declarations section of the SUDialog, then you can call any Functions or Subs in that ScriptIncluded *.VBS file with their native parameters, one of which can be an array of strings.

 

Alternatively, you can set a global array variable in the dialog and read that global array variable in the script you call with ScriptStart().

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 12 of 12
(2,192 Views)