public function periods(str1 as string) as string
dim array() as string
(...)
periods = array
end function
Use Mid$ to cut the string, and think how would you do it. Notice that you'll have 2^(n-1) posibilities, where n is the number of letters in your word, so
public function periods(str1 as string) as string
dim array() as string
(...)
periods = array
end function
Use Mid$ to cut the string, and think how would you do it. Notice that you'll have 2^(n-1) posibilities, where n is the number of letters in your word, so
redim array (1 to 2^(len(str1)-1))
woudl be useful.
HTH
I know what to do, just not how to do it. Could you make a function for me?