This question is related to another question I asked on the Forum today and which was very kindly answered by Idle_Mind.
I have a Global Boolean variable in my project in a Visual Basic .NET Project named YesNo01. This YesNo01 is declared in a Module1 of my Project.
I wish to write some code along the following lines
1. If YesNo01 = True Then
2. MessageBox.Show (“YesNo01 = True”)
3. MessageBox.Show (“YesNo01 = False”)
4. End if
However I do not want to use the actual Name of YesNo01 in statement No 1. Instead I wish to say something like the following:
Dim myString as String
myString = “YesNo01”
If myString = True Then
MessageBox.Show (“YesNo01 = True”)
MessageBox.Show (“YesNo01 = False”)
Thank you for your help in anticipation.