开发者

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"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜