Yes I know,
Who in the world would use console in VB.Net . . . The instructor for the .Net class I'm in.
I'm using Deitels Visual Basic .Net (How to Program second edition) and it doesn't give any examples or explanation on clearing a console window. I know C++ uses system("cls") to clear the screen, I'm pretty sure .Net has a similar feature.
My program works fine, it loops like its supposed to do.![]()
I just wanted to know if there is any way to clear the console window between loops?![]()
My program flows like this:
1. initilize varables and set flag to true
2. begin loop (test if flag is true) (if flag is false skip loop)
prompt user for data
get user responce
calculations done
assign calculation values to varables
prompt user if they wish to do another calculation
get user responce
if yes loop through the process until user enters no
**** This is where I want to clear the screen ****
**** what code if any is needed here? ****
3. If No then set flag to false and move to the top of the loop
4. exit program




Reply With Quote