>I've been given the task of maintaining some VB.NET code. After quickly scouring the code, I decided to try to see what some of the VB functions in it was trying to accomplish. So being a long time VFPer and a
newbie to VB.NET, I figured I'd open the Immediate Window, enter the function then see the result. I hoped that it would behave like the VFP debug window where I'd see the immediate results :)
>
>Was I wrong. After typing "? DatePart(DateInterval.Month, Now)" into the Immediate window without the quotes, .NET decided to build the project. Of course, with all the errors and warnings, I don't get to see the result of what I tried to type. Just out of curiousity, I then typed "? 100/10"...same thing! Nothing.
>
>Was I expecting too much from this .NET IDE "Immediate window" thing? If not, how do I make it work such that I can get a result returned/displayed to me when I type in simple commands/functions?
>
>TIA
May be I'm wrong again but did you try Debug.Print instead of ?
If it's not broken, fix it until it is.
My Blog