>set step on >if thisform.EditMode and dodefault() && in Edit Mode this method means save > thisform.SaveProceed() && Some additional actions, after the record was saved >else > dodefault() && Add method >endifIn this case dodefault() fires in the IF statement in order to get the logical condition, then fires again in the ELSE if either condition is .F.