2
如何在Visual Basic(.Net)中使用變量變量名稱?在Visual Basic中使用變量名稱
dim test as String
test = "mysetting"
My.Settings.{test} = "something"
這應該是因爲這樣做是相同的:
My.Settings.mysetting = "something"
如何在Visual Basic(.Net)中使用變量變量名稱?在Visual Basic中使用變量名稱
dim test as String
test = "mysetting"
My.Settings.{test} = "something"
這應該是因爲這樣做是相同的:
My.Settings.mysetting = "something"
嗯?
My.Settings(test) = "something"
你的意思是動態地構造一個變量? – 2011-06-13 15:05:20
我想通過動態名稱訪問設置yup – PeeHaa 2011-06-13 15:08:10
字典有什麼問題? – Cyclone 2011-06-13 15:25:22