在Visual Basic中使用变量名称

时间:2011-06-13 14:53:31

标签: vb.net variables

如何在Visual Basic(.Net)中使用变量变量名?

dim test as String

test = "mysetting"

My.Settings.{test} = "something"

这应该与做:

相同
My.Settings.mysetting = "something"

1 个答案:

答案 0 :(得分:5)

嗯?

My.Settings(test) = "something"