Add Items to List

  • 89 Views
  • Last Post 07 December 2020
  • Topic Is Solved
Kirill.Zaznobin@softline.com posted this 04 December 2020

 Hi Team!

I am wondering how to initialize lists and add items to it during tests for Variable component? I have this workflow: 

So in my process this activity gets variable 'PartNum' from another activity and I do not want it to be global, I want this variable to be local. For test purposes I need to create some values in my list variable 'PartNum'. However, I did not find any possibility to do it. I do not want to use List component as Global Object because this will initialize global list that I do not really need. Is there any possibility to initizalize and fill list locally?

Order By: Standard | Newest | Votes
Intellibot Support posted this 07 December 2020

Hi,

Please find the screenshot below,

Please use this script shown below,

Dim list As New List(Of Integer)

        list.Add(1)

        list.Add(2)

        list.Add(3)

Hope its helps!

Thanks & Regards,

Intellibot Support.

 

  • Liked by
  • Kirill.Zaznobin@softline.com
Kirill.Zaznobin@softline.com posted this 07 December 2020

Hi!

Thanks for your help!

Close