Error when declaring array in C#

Hello, is there a difference in how arrays are declared when using C# and VB in UiPath? I thought the logic was the same, but when I declare an array in C# I get the following error: Argument ‘Value’ CS1002: ;expected, Argument ‘Value’ CS1513: } expected.

I declared the array as follows:

When I did this in VB, I did not get any errors.

Any help would be much appreciated

Hi @Tomas_Gic

give a try on: new String[] {"Ax001","Ax002","Ax003","Ax004","Ax005","Bx001","Bx002","Bx003","Cx001","Cx002","Cx003","Cx004"};

Hope it helps!!

Yes this helps a lot! Thanks a million!

Hi @Tomas_Gic

If you find solution for your query please mark it as solution to close the loop

Regards