[Build Error of Main Sub] [Blue Underline in the Codes Window]
Build Error of Main Sub
Blue Underline in the Codes Window
You may see a blue underline under a variable name as shown below. There are two possible scenarios
It indicates that the variable is not defined. In the example, I defined a variable as intMyNumber, but I did not define intYourNumber. That is an error since all variables must be defined before use.
Another example is the undefined control name as shown below.
txtOutput has a blue underline because it has a different name on the GUI as shown below.
To fix it, either change the name in the Properties window, or in the codes window to match the name in the GUI and codes.