Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

How to dynamically concatenate strings from multiples ListBox Values

Avatar of Philippe Renaud
Philippe RenaudFlag for Canada asked on
Visual Basic Classic.NET ProgrammingVisual Basic.NET
16 Comments1 Solution640 ViewsLast Modified:
Hello EE,

I have this huge problem in my mind. Let me explain.
First of all, the form I have creates listBox dynamically based on a value in SQL server database on a table. Lets say the value is 4 well there will be 4 list Box on the form (I create those with a For x = 0 to "the value in db) thats No problem.

Also I populate the listboxes with different DB values. Still fine here.

Ok now the problem.  Lets say I have 3 list box like that:

       1st listBox                                  2nd List                                             3rd list

           01                                              aa                                                      Test
           02                                              bb                                                      Test2
           05                                               ff                                                       Test6

If the client select the row "01" and "02" and lets say also "aa" and "bb" and lets say for the third one "Test" and "Test2"

I need for result when he clicks on a button to show ALL the possible path of strings. For here the results (on a msgbox would be that) :


Ok I think I did not forgot one. Anyway you get the idea?  I know I need to create FOR for the number of listbox i have but the thing is I cannot know in advance the number of list box so I cannot Hard Code the For !!
I need a kind of Recursive thing and thats out of my scope.....

Any ideas ????? Thanks !!!!
Avatar of Mike Tomlinson
Mike TomlinsonFlag of United States of America imageHigh School Computer Science, Computer Applications, Digital Design, and Mathematics Teacher
This problem has been solved!
Unlock 1 Answer and 16 Comments.
See Answers