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!

list of elements in vb

Status
Not open for further replies.

bousair

Technical User
Jan 16, 2002
5
NL
Hello guys,

Is it possible to create a list of elements in vb, like the way you can do that in Python (example: list = ("AA","BB","CC")?

Thank you,
 
If I understand what you want then you can use a listbox and dynamically set the contents at run-time.

HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
Or could it be Split (array) or Scripting.Dictionary?
 
Ah, the word list threw me.

After a quick google looks like it's just an array isn't it? Populate it with a loop or (as per Remou's post) split a delimited string into one.

HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top