Gopher2011
Well-known member
I am looking at some code written by another engineer who has since left the company. He has a module and in that module he has declared Analogues(20). When I scroll down to the function shown below, and right click Analogues - go to definition it takes me to the top of the file, and lands on top of the
"Public Analogues(20) As String"
This is the expected, and correct behaviour. However.... When i change the name from :-
"Public Analogues(20) As String"
TO
"Public OldAnalogues(20) As String"
I would have expected it to flag all the 'Analogues' in the file with a red underline to denote no defined declaration.
However this is not the case. When i click on go to definition, it now takes me to another file in the project, and lands on.
This is bad right? This is like, totally random behaviour. How the heck does the program know which one to use at runtime?
"Public Analogues(20) As String"
VB.NET:
Module Module1
Public Analogues(20) As String
Public Sub Update()
TempVal = CDbl(Analogues(1))
End Sub
End Module
This is the expected, and correct behaviour. However.... When i change the name from :-
"Public Analogues(20) As String"
TO
"Public OldAnalogues(20) As String"
I would have expected it to flag all the 'Analogues' in the file with a red underline to denote no defined declaration.
However this is not the case. When i click on go to definition, it now takes me to another file in the project, and lands on.
VB.NET:
Module Module2
Public Analogues(7) As String
End Module
This is bad right? This is like, totally random behaviour. How the heck does the program know which one to use at runtime?