Re: displaying results



There are a couple of ways to accomplish this.

1. Add the Obj.GetText to the watch window while you are stepping over the
code.
2. Debug.writeline(Obj.GetText), will output the value in the output window
3. Trace.Writeline(Obj.GetText) will output the value in the output window,
and allow you to capture it with a TraceListener for logging into another
medium.
4. if you are expecting a particular value, you may use
debug.assert(string.compare(Obj.GetText,"Some Text")=0, "Obj.GetText is not
some value") will still message box while in debug mode, but only if the
criterian does not match.

in all cases you will have to run the code.

HTH

"Lynn" <MarryLynn@xxxxxxxxx> wrote in message
news:eUTQ78MJGHA.524@xxxxxxxxxxxxxxxxxxxxxxx
> Hi,
> In VB.net, how can i know the results of Obj.GetText without running the
> code and using messagebox to display it?
> thanks
>
>


.



Relevant Pages

  • RE: Debugging messages in Output window
    ... As for the "Redirect all Output window text to the Immediate window" option ... will be redirected(or some messages print through standard debugger API). ...
    (microsoft.public.vsnet.debugging)
  • RE: Output Window
    ... to create a console applicaiton for each Exercise, ... Public Sub DirFiles() ... I'd like to clear the Output window of any previous output. ... Is there a way to clear previous output text in the Output Window? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Interop Question with Unmanaged C++
    ... You have to enable umanaged debugging in the debug properties of your ... |I have both an unmanaged DLL written in C++, ... in my Output window I don't see any ...
    (microsoft.public.dotnet.languages.csharp)
  • Interop Question with Unmanaged C++
    ... I have both an unmanaged DLL written in C++, ... in my Output window I don't see any ... because I change change the value that gets returned in my C++ code, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Console.Clear()
    ... I never said it was the console window. ... use the console.writeline member function to output to the output window, ...
    (microsoft.public.dotnet.languages.vb)

Quantcast