Quick Watch Error "Cannot Obtain Value"
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
I came across a VB 2003 IDE quirk. If you have variables referenced in a select case stament in a sub the quick watch window seems to have trouble interacting with ide and cannot display the value of the variable. Specifically, I had a datatable defined inside the case statement. If I would add the datatable to the watch window all of its properties displayed "Error: cannot display value" in the value section of the watch. However wehen I moved all of the code in the case statement into its own sub the watch window behaved as i expected. Not sure whats going on there, be refactoring the sub made things cleaner anyway.