473,320 Members | 2,000 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Change value during debug

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
6 5727
"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
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
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
"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
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Chris Herring | last post by:
Hi there: Well, let me start off by saying that I am a Visual Studio drag and drop weenie, not a real programmer. So I tend to get confused when things do not look like the instructions said they...
8
by: deko | last post by:
I'm trying to find a way to set form/control properties programmatically. In a nut shell: 1. Open a database 2. Open a form in design view 3. Do something like this: For Each prp In...
13
by: Andrew | last post by:
I use conditional compiler constants, set through the VBA IDE in Tools, <projectname> Properties, that I refer to throughout my code to control which code is used during development, and which...
2
by: Tor Inge Rislaa | last post by:
How to change row height in a DataGrid I have DataGrid that is filled with data from a table in a DataSet. The content of the cells is text of more than one line (as a note field). What I...
1
by: Bob Day | last post by:
Consider the two code snippets below. a) During development, if you hold your cursor over AKA.SomeDateTime in Snippet 2, it will indicate a value of #1/1/1950# as expected. b) If you...
2
by: Greg Strong | last post by:
Hello All, Is it possible to change table field lookup properties in code? I've been able to change other field properties in code, however so far no luck with field lookup properties. What...
8
by: Jan Kucera | last post by:
Hi, I have structure like this: namespace Namespace { public class User { public Subnamespace.Settings Settings = new Subnamespace.Settings(); } namespace Subnamespace {
5
by: B. | last post by:
I know there is similar post few years back, but it didn't help solving my problem: We have a big project. Our legacy code is ported to VC++ 2005 recently. We have new feature written in C#.Net....
1
by: JM | last post by:
Hi, I used to chage my code during debugging with Visual Studio 2003, but now with Visual Studio 2005 I am not able to do it. I have been looking how to configure Visual Studio 2005 to allow me...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.