If I use the Split function to create an array called aryName using " " as the delimitter, how do I combine the elements to give me each combination, including single elements, of the array.
For example the string "oooo nnnn eeee" would be split into
oooo
nnnn
eeee
I only want combinations that are next to each other and remain inorder.
The combinations would be:
oooo
nnnn
eeee
oooo nnnn
nnnn eeee
oooo nnnn eeee
For "a b c d" the result would be:
a
b
c
d
ab
bc
cd
abc
bcd
abcd
How do I determine the number of elements in an array.
Any help would be appreciated.
For example the string "oooo nnnn eeee" would be split into
oooo
nnnn
eeee
I only want combinations that are next to each other and remain inorder.
The combinations would be:
oooo
nnnn
eeee
oooo nnnn
nnnn eeee
oooo nnnn eeee
For "a b c d" the result would be:
a
b
c
d
ab
bc
cd
abc
bcd
abcd
How do I determine the number of elements in an array.
Any help would be appreciated.