Connecting Tech Pros Worldwide Forums | Help | Site Map

Deleting line from console

Badger
Guest
 
Posts: n/a
#1: Nov 17 '05
Hi there,

Is there any way to delete a line from the console with the System.Console
object?

Cheers.

Ignacio Machin \( .NET/ C# MVP \)
Guest
 
Posts: n/a
#2: Nov 17 '05

re: Deleting line from console


Nop,

Once it's written there is nothing you can do about it, you could just clear
it though.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation



"Badger" <Badger@discussions.microsoft.com> wrote in message
news:4DEF717E-BBD2-425B-AAC2-96926884D2EF@microsoft.com...[color=blue]
> Hi there,
>
> Is there any way to delete a line from the console with the System.Console
> object?
>
> Cheers.[/color]


JSheble
Guest
 
Posts: n/a
#3: Nov 17 '05

re: Deleting line from console


I hope this doesn't sound too stupid, but how do you clear it?


"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:eAHle$NnFHA.2916@TK2MSFTNGP14.phx.gbl...[color=blue]
> Nop,
>
> Once it's written there is nothing you can do about it, you could just
> clear it though.
>
> cheers,
>
> --
> Ignacio Machin,
> ignacio.machin AT dot.state.fl.us
> Florida Department Of Transportation
>
>
>
> "Badger" <Badger@discussions.microsoft.com> wrote in message
> news:4DEF717E-BBD2-425B-AAC2-96926884D2EF@microsoft.com...[color=green]
>> Hi there,
>>
>> Is there any way to delete a line from the console with the
>> System.Console
>> object?
>>
>> Cheers.[/color]
>
>[/color]


aRebol
Guest
 
Posts: n/a
#4: Nov 17 '05

re: Deleting line from console


JSheble wrote:[color=blue]
> I hope this doesn't sound too stupid, but how do you clear it?
>
>
> "Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
> in message news:eAHle$NnFHA.2916@TK2MSFTNGP14.phx.gbl...
>[color=green]
>>Nop,
>>
>>Once it's written there is nothing you can do about it, you could just
>>clear it though.
>>
>>cheers,
>>
>>--
>>Ignacio Machin,
>>ignacio.machin AT dot.state.fl.us
>>Florida Department Of Transportation
>>
>>
>>
>>"Badger" <Badger@discussions.microsoft.com> wrote in message
>>news:4DEF717E-BBD2-425B-AAC2-96926884D2EF@microsoft.com...
>>[color=darkred]
>>>Hi there,
>>>
>>>Is there any way to delete a line from the console with the
>>>System.Console
>>>object?
>>>
>>>Cheers.[/color]
>>
>>[/color]
>
>[/color]
Check
http://msdn.microsoft.com/library/de...the_screen.asp
JSheble
Guest
 
Posts: n/a
#5: Nov 17 '05

re: Deleting line from console


> Check[color=blue]
> http://msdn.microsoft.com/library/de...the_screen.asp[/color]

I did, and it provided nothing in C# to clear the screen. The first example
of system("cls") does nothing (won't even compile), and the second example
includes references to a whole slew of functions that doesn't exist in C#...



"aRebol" <apwing@zonnet.nl> wrote in message
news:488b9$42f8d15d$3e3ba7c9$25734@news.versatel.n l...[color=blue]
> JSheble wrote:[color=green]
>> I hope this doesn't sound too stupid, but how do you clear it?
>>
>>
>> "Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us>
>> wrote in message news:eAHle$NnFHA.2916@TK2MSFTNGP14.phx.gbl...
>>[color=darkred]
>>>Nop,
>>>
>>>Once it's written there is nothing you can do about it, you could just
>>>clear it though.
>>>
>>>cheers,
>>>
>>>--
>>>Ignacio Machin,
>>>ignacio.machin AT dot.state.fl.us
>>>Florida Department Of Transportation
>>>
>>>
>>>
>>>"Badger" <Badger@discussions.microsoft.com> wrote in message
>>>news:4DEF717E-BBD2-425B-AAC2-96926884D2EF@microsoft.com...
>>>
>>>>Hi there,
>>>>
>>>>Is there any way to delete a line from the console with the
>>>>System.Console
>>>>object?
>>>>
>>>>Cheers.
>>>
>>>[/color]
>>
>>[/color]
> Check
> http://msdn.microsoft.com/library/de...the_screen.asp[/color]


Willy Denoyette [MVP]
Guest
 
Posts: n/a
#6: Nov 17 '05

re: Deleting line from console



"JSheble" <jsheble-NOSPAM@logicor.com> wrote in message
news:OyTWuKcnFHA.3316@tk2msftngp13.phx.gbl...[color=blue][color=green]
>> Check
>> http://msdn.microsoft.com/library/de...the_screen.asp[/color]
>
> I did, and it provided nothing in C# to clear the screen. The first
> example of system("cls") does nothing (won't even compile), and the second
> example includes references to a whole slew of functions that doesn't
> exist in C#...
>[/color]

Which is quite normal as the samples are C code not C#. Anyway they might
give you some ideas what you could do when calling these API's using
PInvoke.



Willy.


aRebol
Guest
 
Posts: n/a
#7: Nov 17 '05

re: Deleting line from console


JSheble wrote:[color=blue][color=green]
>>Check
>>http://msdn.microsoft.com/library/de...the_screen.asp[/color]
>
>
> I did, and it provided nothing in C# to clear the screen. The first example
> of system("cls") does nothing (won't even compile), and the second example
> includes references to a whole slew of functions that doesn't exist in C#...
>
>
>
> "aRebol" <apwing@zonnet.nl> wrote in message
> news:488b9$42f8d15d$3e3ba7c9$25734@news.versatel.n l...
>[color=green]
>>JSheble wrote:
>>[color=darkred]
>>>I hope this doesn't sound too stupid, but how do you clear it?
>>>
>>>
>>>"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us>
>>>wrote in message news:eAHle$NnFHA.2916@TK2MSFTNGP14.phx.gbl...
>>>
>>>
>>>>Nop,
>>>>
>>>>Once it's written there is nothing you can do about it, you could just
>>>>clear it though.
>>>>
>>>>cheers,
>>>>
>>>>--
>>>>Ignacio Machin,
>>>>ignacio.machin AT dot.state.fl.us
>>>>Florida Department Of Transportation
>>>>
>>>>
>>>>
>>>>"Badger" <Badger@discussions.microsoft.com> wrote in message
>>>>news:4DEF717E-BBD2-425B-AAC2-96926884D2EF@microsoft.com...
>>>>
>>>>
>>>>>Hi there,
>>>>>
>>>>>Is there any way to delete a line from the console with the
>>>>>System.Console
>>>>>object?
>>>>>
>>>>>Cheers.
>>>>
>>>>
>>>[/color]
>>Check
>>http://msdn.microsoft.com/library/de...the_screen.asp[/color]
>
>
>[/color]

Hi again,

I did another search with some different keywords in different places
and this time I found a real working C# solution for your problem here:
http://support.microsoft.com/default...b;en-us;319257

HTH ;-)
Closed Thread