Using a string value inside a dim

MDEnt

Member
Licensed User
Longtime User
Not sure if this is possible, but I'm creating a string from data with Stringbuilder in a For/Next.

What I'm looking to do is take all of these strings while the For/Next runs several times with different input data and dim them as panels:

My strings being built in the For/Next with appends are Panel1 Panel2 Panel3 ... etc. inside a String called PanelString.

I can see that my strings are being built right with a msgbox.

Next, during the For/Next - I'm hoping to place the string in a panel dim like:

Dim PanelString As Panel

At the moment I am running into (I think) a string/panel dim conflict with the term PanelString.
 
Top