function closeExamDialog(){
      setName("");
      setExamLink("");
      setDateTimeStart(new Date());
      setDuration(0);
      setExamCode("");
      setErrorText("");
      setExamDialogOpen(false);
  }
/**
   * This function is called when user presses Cancel Button
   * or clicks outside the dialog box
   * It first sets all variables to their initial value then
   * closes the dialog box
   */
This function is called when user presses Cancel Button
or clicks outside the dialog box
It first sets all variables to their initial value then
closes the dialog box
This function is called when user presses Cancel Button or clicks outside the dialog box It first sets all variables to their initial value then closes the dialog box
function closeExamDialog(){
      setName("");
      setExamLink("");
      setDateTimeStart(new Date());
      setDuration(0);
      setExamCode("");
      setErrorText("");
      setExamDialogOpen(false);
  }
function closeExamDialog ( ) { setName ( "" ) ; setExamLink ( "" ) ; setDateTimeStart ( new Date ( ) ) ; setDuration ( 0 ) ; setExamCode ( "" ) ; setErrorText ( "" ) ; setExamDialogOpen ( false ) ; }
This function is called when user presses Cancel Button
 or clicks outside the dialog box
 It first sets all variables to their initial value then
 closes the dialog box
This function is called when user presses Cancel Button or clicks outside the dialog box It first sets all variables to their initial value then closes the dialog box