Erm, don't know why you are doing this, but many new coders do ask. I will help, but I think you have to sort your thinking out first though! If a user wants tocreate a new variable at runtime - say bob and asks the program to assign 5 to it, what are you ever going to use it for?
Strictly speaking, a program can't suddenly create a new variable during run-time (as the variables are part of the code, you would have to adjust and re-compile code while the code is running??), but you can mimic it. Anyhow, the best way to do this, is to use two arrays:
One string array:
UserVariableNames()
and one value array:
UserVariableValues()
Then if the user requests a new variable, (say for the first time) you can make
UserVariableNames(1)="Bob"
and
UserVariableValues(1)=5
Hope this helps, but I suspect you need to rethink what you are doing. This sort of thing would really only be useful if you were, say, producing a calculator program, or maths parser, in which the user could type Bob=5 on one line, and then say Bob*2 and get 10 as an answer on another line.
Normally, programs
do not create (or rather mimic creating!, cause as I said creation is actually impossible) new variables at run time!
"You get what everyone gets, you get a lifetime!" - Death, The Sandman Library
First you Dream, then you ... - Neil Gaiman, 2001