Results 1 to 3 of 3

Thread: Hovering over variables in VB run

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Hovering over variables in VB run

    Why is it at times (or maybe the project itself, IDK) when I hover the mouse over a variable it does not show the value beneath the cursor? Most of the time it does show the contents of a variable but then sometimes it does not. Any idea to this?
    Last edited by jmsrickland; Jul 4th, 2012 at 04:58 PM.


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

  2. #2
    Default Member Bonnie West's Avatar
    Join Date
    Jun 2012
    Location
    InIDE
    Posts
    4,060

    Re: Hovering over variables in VB run

    It's most likely a bug of the VB IDE. It happens to me too. Try selecting or highlighting the whole variable or expression...

    Matt Curland gave this tip:

    View Right Side of Truncated String

    You see trailing ellipses (...) when VB truncates either the expression or data portion of a data tip (the mouse-hover watch value you get while debugging). This is great if you want to see the left side of a long string value, but not quite as compelling if you care about the right side. Hold the control key down and rehover over the expression to force VB to truncate on the left instead of the right. VB truncates all instant watch strings at 251 characters, so you won’t see the end of very long strings.
    On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
    Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)

  3. #3
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Re: Hovering over variables in VB run

    Well the only way that I've found it shows the variable value when the mouse is over it is when you put a BreakPoint in the code when the app stops at that point you can hold your mouse over any variable and see its current value. You can step through the code by pressing F8 to check variables further down the code.
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width