Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scrambled words

Status
Not open for further replies.

goatsaregreat

Programmer
Mar 21, 2001
82
GB
I need to create an app that allows a user to input a scrambled word, and output, to another form, all the different combinations of the letters in the word. Please Help. TIA
 
1. In order to get the list ordered alphabetically, I suggest you put all separate letters of the word in a (invisible) Listbox with the Property Sorted = True

2. If you also need to display all words made with only 2 letters, loop through the Listbox, take every letter in it and immediately followed by all other letter from the Listbox. If needed, repeat adding a third letter etc. For this, increment an integer (i).

3. If you only need to display the full length words, put i = max.number of letters in the Listbox immediately.

Hope this helps.
Please let me know at
vincent.mairiaux@yucom.be
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top