我试图在字符串中存储一些变量的名称。例如:在VB.NET中存储字符串中的变量名
Dim Foo1 as Integer
Dim Foo1Name as String
' -- Do something to set Foo1Name to the name of the other variable --
MessageBox.Show(Foo1Name & " is the variable you are looking for.")
' Outputs:
' Foo1 is the variable you are looking for.
这将有助于我正在进行的一些调试工作。
我讨厌那个家伙,但这真的不是你做任何事情的方式 – Shawn 2008-12-09 18:09:44