Results 1 to 5 of 5

Thread: Console.Clear()

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Answers
    6

    Console.Clear()

    What is Console.Clear() ? Why is that used??


  2. #2
    Moderator
    Join Date
    Oct 2005
    Answers
    305

    Re: Console.Clear()

    Console.clear() is like cls (clear) command. It erases the console buffer. It is used to erase the content of the screen (console)


  3. #3
    Junior Member
    Join Date
    Jun 2011
    Answers
    6

    Re: Console.Clear()

    Quote Originally Posted by Lokesh M View Post
    Console.clear() is like cls (clear) command. It erases the console buffer. It is used to erase the content of the screen (console)
    thanks for the answer


  4. #4
    Junior Member
    Join Date
    Jun 2011
    Answers
    2

    Re: Console.Clear()

    console.clear() is used to clear the data present on the screen. in "c" as clear().


  5. #5
    Junior Member
    Join Date
    Dec 2011
    Answers
    3

    Re: Console.Clear()

    Console.Clear() is equivalent to invoking the MS-DOS cls command in the command prompt window. When the Clear method is called, the cursor automatically scrolls to the top-left corner of the window and the contents of the screen buffer are set to blanks using the current foreground background colors. It is always better to clear the screen and then display the output.

    jyo


  6.  Sponsored Ads
    Ad


     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact