Results 1 to 14 of 14

Thread: Variable Identification

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Location
    Liverpool
    Posts
    4

    Variable Identification

    Does anyone know how to re-initiate the option within VB that when tabbing through the program, when your cursor is over a variable, it gives you the name of the variable or what it represents?
    Thanks

  2. #2
    PowerPoster cafeenman's Avatar
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    2,819
    I don't understand your question.

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    I think he's talking about Breakpoints???

  4. #4
    Not NoteMe SLH's Avatar
    Join Date
    Mar 2002
    Location
    192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
    Posts
    3,051
    Try in tools->options->Editor tab->code settings frame.

    Not sure if this will do it, as i didn't know you could disable that.
    Quotes:
    "I am getting better then you guys.." NoteMe, on his leet english skills.
    "And I am going to meat her again later on tonight." NoteMe
    "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
    "my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
    Have I helped you? Please Rate my posts.


  5. #5
    Not NoteMe SLH's Avatar
    Join Date
    Mar 2002
    Location
    192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
    Posts
    3,051
    To illistrate what he want's to enable, put this in a new form

    VB Code:
    1. Dim a As Integer
    2. Private Sub Form_Load()
    3. a = 50
    4. Print a
    5. End Sub

    Make 'Print a' a breakpoint. Run it, then hover your mouse over a. A tooltip box will pop up displaying the variable's value (50).
    Quotes:
    "I am getting better then you guys.." NoteMe, on his leet english skills.
    "And I am going to meat her again later on tonight." NoteMe
    "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
    "my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
    Have I helped you? Please Rate my posts.


  6. #6
    PowerPoster cafeenman's Avatar
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    2,819
    Yeah... but as far as I know you can't turn that off. And I don't know what "tabbing through a program" means and the name of the variable is the name of the variable. So you're probably right, but what he asked isn't even possible.

  7. #7
    Not NoteMe SLH's Avatar
    Join Date
    Mar 2002
    Location
    192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
    Posts
    3,051
    I didn't think it was...


    When the program has stopped at a breakpoint press F8 (which is, i think what he means by tabbing through the program).
    Quotes:
    "I am getting better then you guys.." NoteMe, on his leet english skills.
    "And I am going to meat her again later on tonight." NoteMe
    "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
    "my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
    Have I helped you? Please Rate my posts.


  8. #8
    Si_the_geek
    Guest
    as I said in the other thread, the option is apparently "auto data tips"...

  9. #9
    PowerPoster cafeenman's Avatar
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    2,819
    So he wants to know how to get the value of a variable in break mode when stepping through the program. Maybe we need a sticky thread entitled "How to speak VB."

    I've never seen a place to turn that off. Maybe a registry setting or something. It might turn off automatically if low on memory as well.

    Maybe he's killing the program instead of breaking execution.

  10. #10
    PowerPoster cafeenman's Avatar
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    2,819
    OK, ignore my last post. SI says it can be done. At least I know what the question was.

  11. #11
    Si_the_geek
    Guest
    one of those questions that most of us would ever need to know the answer to, as we don't bother to change the options too often!

  12. #12
    Not NoteMe SLH's Avatar
    Join Date
    Mar 2002
    Location
    192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
    Posts
    3,051
    Of course he could just do

    ?Expression/VariableName

    in the immidiate window.
    Quotes:
    "I am getting better then you guys.." NoteMe, on his leet english skills.
    "And I am going to meat her again later on tonight." NoteMe
    "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
    "my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
    Have I helped you? Please Rate my posts.


  13. #13
    Si_the_geek
    Guest
    Originally posted by SLH
    Of course he could just do

    ?Expression/VariableName

    in the immidiate window.
    you expect a coder to go to that much effort???

    come on, we cant have that!

  14. #14
    Not NoteMe SLH's Avatar
    Join Date
    Mar 2002
    Location
    192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
    Posts
    3,051
    Quotes:
    "I am getting better then you guys.." NoteMe, on his leet english skills.
    "And I am going to meat her again later on tonight." NoteMe
    "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
    "my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
    Have I helped you? Please Rate my posts.


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