Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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"
like image 993
PeeHaa Avatar asked Dec 09 '25 20:12

PeeHaa


1 Answers

Eh?

My.Settings(test) = "something"
like image 138
GSerg Avatar answered Dec 12 '25 19:12

GSerg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!