Ver Mensaje Individual
  #3  
Antiguo 21-10-2015
frandigo77 frandigo77 is offline
Miembro
NULL
 
Registrado: abr 2014
Posts: 17
Reputación: 0
frandigo77 Va por buen camino
Ahí va:
Código Delphi [-]
function TDialogo.Guardar: boolean;
var
  I: Integer;
begin
  inherited;
  Result:= False;
  if Assigned(dsBase.DataSet) then
  begin
    try
     With dsBase.DataSet as TClientDataSet do
     begin
      if Assigned(DataSetField) or FModoCache then
      begin
        CheckBrowseMode;
        Result:= True;
      end
      else
      begin
        Result:= ApplyUpdates(0) = 0;
        if not Result then
           Abort;
      end;
      end;
    except
      On E: Exception do
      begin
        Application.ShowException(E);
        raise E;
      end;
    end;
  end;
end;
Responder Con Cita