Ver Mensaje Individual
  #7  
Antiguo 22-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
Mi copy no funciona

Este funcion no funciona, o sea, si el lo encuentra un archivo que tenga la string CLASS, no deberia hacer el copytostream pero lo hace, o sea, no respecta mi IF. Abajo el código:
Código Delphi [-]
....
hftName := fFindFiles.DestPath + JobName + '.hft';

  posicao := Pos('CLASS',hftName);

  Stream := TFileStream.Create(hftName, fmCreate);
  try
    if posicao = 0 then
      fJob.SaveToStream(Stream);
  finally
    Stream.Free;
  end;
....
Responder Con Cita