Home All Groups Group Topic Archive Search About

how to overwrite console.write?

Author
7 Nov 2006 7:13 PM
Rich
Hello,

I need to write to the console window, but I don't want to add a new line,
and I don't want to write the next value adjacent to the previous value.  I
just want to overwrite the previous value.  How can this be performed?

Thanks,
Rich

Author
7 Nov 2006 8:00 PM
Kerry Moorman
Rich,

Console.CursorLeft and Console.CursorTop will let you position the cursor.
Then whatever you write will overwrite what was at that location.

Kerry Moorman


Show quoteHide quote
"Rich" wrote:

> Hello,
>
> I need to write to the console window, but I don't want to add a new line,
> and I don't want to write the next value adjacent to the previous value.  I
> just want to overwrite the previous value.  How can this be performed?
>
> Thanks,
> Rich
Author
7 Nov 2006 9:49 PM
Rich
Thanks.  That is just what I needed.

Rich

Show quoteHide quote
"Kerry Moorman" wrote:

> Rich,
>
> Console.CursorLeft and Console.CursorTop will let you position the cursor.
> Then whatever you write will overwrite what was at that location.
>
> Kerry Moorman
>
>
> "Rich" wrote:
>
> > Hello,
> >
> > I need to write to the console window, but I don't want to add a new line,
> > and I don't want to write the next value adjacent to the previous value.  I
> > just want to overwrite the previous value.  How can this be performed?
> >
> > Thanks,
> > Rich