locked
immediate window for VS 2012 RRS feed

  • Question

  • User636361607 posted

    How do you set value for a variable in the immediate window for VS 2012 ; Or is this feature has been removed for vs2012?

    It used to be (for Visual studio 2010)

    in immediate window:

    iMyvaraibele= 20  -- set the new value for Myvaraibele as 20

    ?iMyvaraibele   -- to see the new value.

    Thanks.

    Tuesday, July 22, 2014 11:51 AM

Answers

  • User1728944201 posted

    Still the same.   You have to make sure that your variable is in scope when you are trying to set it but it is still the same. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 22, 2014 12:06 PM

All replies

  • User1728944201 posted

    Still the same.   You have to make sure that your variable is in scope when you are trying to set it but it is still the same. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 22, 2014 12:06 PM
  • User636361607 posted

     I was debugging and attaching to a process and when I try  in immediate window:

    iMyvaraible= 20     => false   (it was giving the value as " false")

    and for

    ?iMyvaraible  => 10  ; the actual value.

    All right.I will accept your answer.Thanks!

     

     

    Tuesday, July 22, 2014 1:15 PM