answered question
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 … Read more