Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Grupo de Teaming del ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #2  
Antiguo 28-12-2004
Avatar de Edgar++
Edgar++ Edgar++ is offline
Miembro
 
Registrado: dic 2004
Ubicación: Buenos Aires
Posts: 15
Poder: 0
Edgar++ Va por buen camino
Holas! Mira, para lo que vos necesitas va perfecto una funcion recursiva...
Por ejemplo aslgo como esto:

Código Delphi [-]
var dirs: TStringList;
...
...
procedure GetDirList(path: string);
   var sr: TSearchRec;
begin
   if FindFirst(path+'\*.*', faDirectory, sr)=0 then begin
      while FindNext(sr)=0 do
         if ((sr.Attr and faDirectory)<>0) and (sr.Name<>'.') and (sr.Name<>'..') then begin
            { agrega el directorio }
            dirs.Add(path+'\'+sr.Name);
            { agrega los subdirectorios }
          GetDirList(path+'\'+sr.Name);
         end;
    FindClose(sr);
   end;
end;

la variable dirs debe estar inicializada antes de llamar a la funcion.
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro


La franja horaria es GMT +2. Ahora son las 02:46:47.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi