1.

Solve : Automatically create new variables during run in VB.NET?

Answer»

Is it POSSIBLE to create a new sepreate variable during run when neccessary?

Like this(in pseudo-code):

Code: [Select]If blahblah = 10 then
Dim &LT;new variable name from textbox value> as <variable type from another textbox value>
End If
Is it possible?

TEST?No, its for a AI program im makingI've tried to do this before, but no, it isn't, what I now use is arrays, because you can define them with whatever LENGTH the program wants.



so use an ArrayList, and I could just name each slot of the ArrayList by a variable name?



Discussion

No Comment Found