Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Quick Watch Error "Cannot Obtain Value"

Quick Watch Error "Cannot Obtain Value"

Scheduled Pinned Locked Moved Visual Basic
visual-studiohelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jPucci
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups