>>Ok, this is weird: >> >>Here is an Add() method of the form: >>
>>setstepon
>>ifthisform.EditMode and dodefault() && in Edit Mode this method means save
>> thisform.SaveProceed() && Some additional actions, after the record was saved
>>else
>> dodefault() && Add method
>>endif
> >In 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.