How to clear data from console when I used goto option. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to clear data from console when I used goto option.

I used goto option but can't clear previous data. How can I do it?

6th Nov 2016, 2:50 PM
Habibur Rahman
Habibur Rahman - avatar
4 Answers
+ 1
Not sure what you are trying to do but Console.Clear(); may do what you want. Also, you should avoid using goto. Instead, put your piece of code(where you need to use goto) inside loop.
6th Nov 2016, 2:56 PM
Karolis Strazdas
Karolis Strazdas - avatar
+ 1
Not sure what you are trying to do but Console.Clear(); Do what you want. Also, you should avoid using goto. Instead, put your piece of code(where you need to use goto) inside loop.
8th Nov 2016, 3:36 PM
Томошов Максим
Томошов Максим - avatar
+ 1
Not sure what you are trying to do but Console.Clear(); Do what you want. Also, you should avoid using goto. Instead, put your piece of code(where you need to use goto) inside loop.
8th Nov 2016, 3:36 PM
Томошов Максим
Томошов Максим - avatar
0
Thanks to Томошов Максим and Karolis Strazdas. I have gotten solve my problem.
18th Nov 2016, 5:03 PM
Habibur Rahman
Habibur Rahman - avatar