Hi!
In oder to see what ManipulateString(str) will return, you can do either of two things :
(a) type ManipulateString(str) in Watch window, the function will be executed, and the evaluated value show up in watch (this is called Function Evaluation, or funceval)
(b) type ManipulateString(str) in the Immediate window (this is under Debug->Windows), once again the function will be evaluated and its value shown.
Regards,
D.V.
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
[quoted text, click to view] >Thread-Topic: Viewing function return value in C#
>thread-index: AcTtviEXTU8flEI0RbqLbMPAhyj71Q==
>X-WBNR-Posting-Host: 65.121.7.228
>From: "=?Utf-8?B?dHdhaGw=?=" <twahl@discussions.microsoft.com>
>Subject: Viewing function return value in C#
>Date: Wed, 29 Dec 2004 07:50:32 -0800
>Lines: 14
>Message-ID: <A693D576-544A-49DF-BF2A-7282399F29F0@microsoft.com>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="Utf-8"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>Content-Class: urn:content-classes:message
>Importance: normal
>Priority: normal
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>Newsgroups: microsoft.public.vsnet.debugging
>NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
>Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
>Xref: cpmsftngxa10.phx.gbl microsoft.public.vsnet.debugging:6844
>X-Tomcat-NG: microsoft.public.vsnet.debugging
>
>Assume that I am in the debugger and have broken on the return statement.
>How can I view the value that this function will return if I press F10?
>
>Thanks for your help in advance!!!
>
>Public string GetStringVal(string str)
>{
> return ManipulateString(str);
>}
>
>
>
>
>
>
--
This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.