PeeHaa
PeeHaa

Reputation: 72672

Using a variable variable name in Visual Basic

How to use a variable variable name in Visual Basic (.Net)?

dim test as String

test = "mysetting"

My.Settings.{test} = "something"

Which should be the same as doing:

My.Settings.mysetting = "something"

Upvotes: 3

Views: 1817

Answers (1)

GSerg
GSerg

Reputation: 78175

Eh?

My.Settings(test) = "something"

Upvotes: 6

Related Questions