VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Combinations of a String

Dan Redding - Blue Knot Software  (14 Submissions)   String Manipulation   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

This is in response to a question on posted on the Programming Q & A section. It takes a string and fills a listbox with all combinations of the letters in the string (could be adapted to use a dynamic array, too, the listbox was better for demonstration purposes). This program use recursion to get it's results and may be a good example for someone learning the concept to step through. Warning: The number of combinations goes up exponentially! more than 8 characters will work but really bog down your PC!

Inputs
A line of text

Returns
A list of permutations

Rate Combinations of a String (4(4 Vote))

Download Combinations of a String

Combinations of a String Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters