What Is The Difference Between Close And Exit Command?


4 Answers

Gopinath Sundaram Profile
Close closes the particular part of the program,if it is used on the main form or window,it closes the entire application,while exit shutdowns the application as a whole.
Anonymous Profile
Anonymous answered
For example in Visual Basic 6, if you are checking whether a user is typed a date in correct format it or not  if isdate( text1.text ) then  else exit sub end if     ' If one typed wrong date i.e.  30.2.2010 vb will check whether the date is      in correct format or not.  In this case exit sub will exit the argument and       till showing  the Text box to get another corrected date.  But close command means 'the application really end the programe.
Anonymous Profile
Anonymous answered
Close  only exit from the particular Form of Application.   
End  command close entire application.

Answer Question