Extract segments of an array
My array of strings is already sorted from A to Z:
mySort(1) = "apples"
mySort(2) = "apricot"
mySort(3) = "banana"
mySort(4) = "beans"
mySort(5) = "bread"
mySort(6) = "donuts"
'... etc, etc..
mySort(38) = "zuchini"
Is there an easy function that can copy any alphabetical segment of the array into a new array?
For example, if I give the function input "B", it should create this new array:
myarray = Array("banana", "beans", "bread")
Thanks!
|