How can we split an Array

I have an array, length can vary. I want to split the array into 2 strings. The split has to happen after the 10th value.

Array Value = “11111111,222222,33333333,4444444,5555555,666666,77777,888888,9999999,444444444,5555555,6666666”

Is there a way to give the starting index and ending index and get all the values
into 2 sub strings. First substring should have 1st 10 values, The rest of the values in the second substring

Is there a way of doing it without using for each.

Thankyou in advance

Hi,

In this case, we can use Take and Skip method as the following.

Main.xaml (6.8 KB)

Hope this helps you.

Regards,

2 Likes

Thankyou @Yoichi. Appreciate your help.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.