VB.NET select range from array

Hi, I have a String array and I want to select from the third element all the way to the last element, and return another list or array with all those elements. What is the function to do this?


You can try Copy function of array.

Have a look at example change values accordingly. Main.xaml (7.3 KB)



Suppose you have an array like this and you want a new array which starts from 3rd element and takes everything

arrstr = {“1”,“2”,“3”,“4”,“5”,“6”}
arrstr is a array of string variable

arroutput = arrstr.Skip(2)
arroutput is a system.collections.generic.Ienumerable variable

The above expression will skip the first 2 elements from the array and take all the elements


Check this out Main.xaml (7.5 KB)

1 Like

@Avi7 @anil5
Your solutions are very useful. Appreicate a lot.

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