Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB Variable

Status
Not open for further replies.

Alibaba

MIS
Jan 31, 2001
4
CA
I am trying to asign a variable name based upon the input typed in at run time by the user. Does anyone know what command I could use to take input from a message box and turn it into a variable name. The idea is to write modifiable drop down lists at run time.

Many thanks in advance

AliBaba
 
AliBaba hello!

If i understand your question the ComboBox gives you the flexibility to add new items into it. All you have to do is
ComboBox.AddItem "the item you want to add"
You can sort the items by defining the ComboBox sort property to true.

Yaakov

 
No - you can't accept strings thru for instance an inputbox and make that string a variable name, if what you meant is:

Temp=Inputbox$("Gimme a name!")

Dim Cstr(Temp) as String

You see - you end up in never-neverland.

You can't create new Dim-statements at runtime, but then why would you want to?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top