VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Combinations of a String

by Dan Redding - Blue Knot Software (14 Submissions)
Category: String Manipulation
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

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
Code Returns
A list of permutations

Rate Combinations of a String

Download Combinations of a String

Download Combinations of a String (2 KB)

Combinations of a String Comments

No comments have been posted about Combinations of a String. Why not be the first to post a comment about Combinations of a String.

Post your comment

Subject:
Message:
0/1000 characters