By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,710 Members | 1,605 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,710 IT Pros & Developers. It's quick & easy.

Change value during debug

P: n/a
Hi,

I have variable strText, with value "Hello World"

I see this value at Watch window. Can I change this value to "World
Hello" and continue work or I need to stop program , assign new value
to variable and run program again.

At VB6 I can do it, but can not find such opportunity at VB.Net

Thanks
Nov 20 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
"Mike" <y1***@yahoo.com> schrieb

I have variable strText, with value "Hello World"

I see this value at Watch window. Can I change this value to
"World Hello" and continue work or I need to stop program , assign
new value to variable and run program again.

At VB6 I can do it, but can not find such opportunity at VB.Net


Click into the watch window and change the text. Or execute

strtext="world hello"

in the immediate window.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2

P: n/a
There is no such option in .NET
-----Original Message-----
Hi,

I have variable strText, with value "Hello World"

I see this value at Watch window. Can I change this value to "WorldHello" and continue work or I need to stop program , assign new valueto variable and run program again.

At VB6 I can do it, but can not find such opportunity at VB.Net
Thanks
.

Nov 20 '05 #3

P: n/a
Did you try it yourself?

Click into the watch window and change the text. Or execute

strtext="world hello"

in the immediate window.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #4

P: n/a
"Julia Sats" <ju********@sympatico.ca> schrieb
Did you try it yourself?

Click into the watch window and change the text. Or execute

strtext="world hello"

in the immediate window.

Yes, I did. It still works.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #5

P: n/a
Yes, you are right,

but to find it I need to test it on 2 PCs
On the first it does not work, on the second - works

Do you know what can be ? Any flag ?

Thanks
"Armin Zingler" <az*******@freenet.de> wrote in message
news:OW**************@TK2MSFTNGP12.phx.gbl...
"Julia Sats" <ju********@sympatico.ca> schrieb
Did you try it yourself?

Click into the watch window and change the text. Or execute

strtext="world hello"

in the immediate window.

Yes, I did. It still works.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #6

P: n/a
"Julia Sats" <ju********@sympatico.ca> schrieb
Yes, you are right,

but to find it I need to test it on 2 PCs
On the first it does not work, on the second - works

Do you know what can be ? Any flag ?


VB 2002 vs. VB 2003

Seems to be a bug in VB 2002:
If I change the value to "new1", it still displays the old text. After
changing it to "new2", it shows "new1". No prob in VB 2003.

--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.