Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21238

How to arrange strings like that?

$
0
0
Hello :)
It's my 2nd day im working on a function to arrange any string in a certain pattern, and after all my efforts im forwarding this query here.

I want to arrange any string like -
Suppose the string is "google" Now i want to arrange them in a listbox as -

g-oogle
go-ogle
goo-gle
goog-le
googl-e
g-o-o-g-l-e
g-o-gle


and so on [all possible patterns (without any duplicate entry)]..

Note: "-" can be many times but shouldn't be duel like "go--ogle"

I hope you can help me on this :)

Thanks
Regards,

Viewing all articles
Browse latest Browse all 21238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>