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} = "som开发者_JAVA技巧ething"
Which should be the same as doing:
My.Settings.mysetting = "something"
Eh?
My.Settings(test) = "something"
精彩评论