DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a single array using script

Solved!
Go to solution

 Hi. I am sungbae chi

 

Can anyone explain for me how I can make an array using script? I want know syntax to make.

ex) Make an string array into group2 channel1
2222.png

Like this
3333.png

How should I write in script file? I can't find any 'copy as script' functions.

0 Kudos
Message 1 of 3
(2,442 Views)
Solution
Accepted by topic author chisbae

Is it this you are looking for?

Option Explicit

data.Root.Clear
dim grpO : set grpO = data.Root.ChannelGroups.Add("Group")

dim chO : set chO = grpO.Channels.Add("Channel1",DataTypeChnString)

dim i : for i = 1 to 10
  chO.Values(i) = "D" & i
Next
Message 2 of 3
(2,434 Views)

Hi AndreasK 

That's exactly what I want. Thank you for quick response. 

Sungbae chi.

0 Kudos
Message 3 of 3
(2,411 Views)