>hi,
>
>i've tried to do some tracing with the debugger of vs. i used the 'Watch' and 'Locals' to monitor my variables at the same time using the 'Step Into' to see which lines affect the variables in my 'Watch' list. strange thing is my variable 'Name' changes values but the statements that were executed via the 'Step Into' did not pass any statement that would have changed the value of 'Name'. where should i look to find the code that affects my 'Name' variable?
>
>thanks.
Bobby,
You are probably seeing a change in scope, not value. Based on the variable name, the watch window will display the value of the variable matching that name with the smallest scope. Which is the same way that .NET handles the scope of variables with the same name.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only