Reading all values from multi-value parameter (ilogic)

Reading all values from multi-value parameter (ilogic)

mark.almack
Enthusiast Enthusiast
609 Views
1 Reply
Message 1 of 2

Reading all values from multi-value parameter (ilogic)

mark.almack
Enthusiast
Enthusiast

I want to read from a multi-value parameter in the same way as an array. is this possible?

 

e.g. multi-value parameter called "test" is already populated with values "one", "two", "three"

 

i want to do something like:

 

for i = 0 to 2

     oText = oText & test(i) & vbrlf

Next

 

Message box(oText, "Test Parameter Values)

 

- i want this to output:

 

one

two 

three

 

 

Is this possible? (i don't care what order they are in)

 

Thanks for replies in advance

 

 

 

0 Likes
Accepted solutions (1)
610 Views
1 Reply
Reply (1)
Message 2 of 2

mark.almack
Enthusiast
Enthusiast
Accepted solution

The moment I posted, was the moment i worket it out! (I thought i had tried this already)

If anyone else is interested, it's simple:

 

values = MultiValue.List("test")
For i = 0 To values.Count - 1 oText = oText & values(i) & vbCrLf Next MessageBox.Show(oText, "Title")