Ver Mensaje Individual
  #1  
Antiguo 20-07-2011
Paulao Paulao is offline
Miembro
 
Registrado: sep 2003
Ubicación: Rua D 31 Casa 1 - Inhoaíba - Rio de Janeiro - RJ - Brasil
Posts: 637
Reputación: 21
Paulao Va por buen camino
Types Incompatibles

Tengo este error
[Error] clsListValidator.pas(106): Incompatible types: 'TDocumentoNovo' and 'IDocument'Esta es la procedure
Código:
procedure TListValidator.Validate(Documento: IDocument);
var
  IntNum: integer;
begin
  for intNum := 0 to Self.Count - 1 do
  begin
    try
      Self[intNum].Validate(Documento);
    except
      On E:EPluginException do
        Raise EPluginException.Create(E.ErrorCode, E.Message);
      On E:Exception do
        Raise Exception.Create(E.Message);
    end; // Try..Except
  end; // For
  
end;
Pero en una Interface que tengo, la declaracion es asi:
procedure Validate(Documento: TDocumentoNovo');overload;
O sea, la declaracion es Overload y si es Overload, ella deberia aceptar otros tipos de parametros o cantidad o mismo retorno diferente(si es una funcion). Entonce, porque el error?
Responder Con Cita