Ver Mensaje Individual
  #2  
Antiguo 17-09-2003
Avatar de Investment
Investment Investment is offline
Miembro
 
Registrado: may 2003
Posts: 378
Reputación: 24
Investment Va por buen camino
En la ayuda de Delphi te viene un ejemplo claro de su uso.

Código:
 
procedure TForm1.Button4Click(Sender: TObject);
var
  FileToFind: string;
begin
  FileToFind := FileSearch(NombreArchivo.xxx', GetCurrentDir);
  if FileToFind = '' then
    ShowMessage('No se ha podido encontrar NombreArchivo.xxx')
  else
    ShowMessage('NombreArchivo.xxx');
end;
Le pasas a FileSearch un nombre de archivo y un directorio y si no lo encuentra la funcion no te devuelve nada.

Pruebalo.
__________________
Saludos,
Peter Investment

Última edición por Investment fecha: 17-09-2003 a las 12:37:46.
Responder Con Cita