JaedenRuiner
Well-known member
- Joined
- Aug 13, 2007
- Messages
- 340
- Programming Experience
- 10+
Okay,
I've looked, but the only ones I see don't quite do the same thing. This is what I came up with in my code that does exactly what I want and the way I want it. is there a Parallel that will do this but just directly from an array:
The Function I'm calling needs an Array of strings, that I get from the GetSomeStringArray() function. However, I need ALL of the Cols() array for other operations before and after this call, but for this specific call i want the sub array (all items except the last one). The Array.Copy/CopyTo require another parameter etc, etc, and frankly I don't feel like using a temp variable for just this one call. is there anyway to do a subarray similar to the String.Substring(), or how the String.Join() can take a start/length parameter, and just have an array do Array.SubArray(myarray, 0, 3)
Thanks
I've looked, but the only ones I see don't quite do the same thing. This is what I came up with in my code that does exactly what I want and the way I want it. is there a Parallel that will do this but just directly from an array:
VB.NET:
dim cols() as string = GetSomeStringArray(<blah>)
ThisFunctionNeedsArrayInput(Split(String.Join(",", cols, 0, cols.Length - 1), ","))
Thanks