FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
TFileListBox archivos *.txt con meses
amigos recurro a ustedes nuevamente, tengo un TFileListBox rescatando archivos *.txt y son meses todo funciona bastante bien, pero ahora me han pedido que lo ordenes segun los meses correspondiente, cada archivo corresponde a cada mes del año y necesito ordenarlo por mes, se puede hacer esto con el TFileListBox ??? o sino para utilizar otra manera, de ante mano muchas gracias
saludos Patho |
#2
|
|||
|
|||
Aquí http://216.101.185.148/scripts/isapi...rticle=1502193
aquí http://216.101.185.148/scripts/isapi...rticle=1502242 y aquí http://216.101.185.148/scripts/isapi...rticle=1502249 tienes como se puede hacer (ordenando por fecha y por último acceso) sin usar TFileListBox ya que este control no incorpora ordenar archivos por alguno de sus atributos. Saludos |
#3
|
||||
|
||||
Bueno, amigo Northern, creo que a lo que Patho se refiere es a que los archivos se llaman ener.txt, febrero.txt, marzo.txt... (si no es así, por favor, corrígeme). En ese caso, para ordenarlos, no veo una solución directa.
Podrías renombrar los archivos, de la siguiente manera: "01enero.txt", "02febrero.txt"... así se ordenarían automáticamente por nombre. También podrías utilizar un TListBox normal, y los métedos FindFirst y FindNext para añadirle los archiovos. Así podrías manejar los Items del TListBox a tu gusto. Saludos. |
#4
|
|||
|
|||
Cita:
Puedes ir llamando a la función GetAllFiles especificando el mes GetAllFiles(FileList, 'ene*.*', faArchive);etc. Y como acabo de entrar y me he dado cuenta de que los enlaces que puse hacia www.tamaracka.comvan por tiempo pongo aquí los códigos pero que sepas que están sacados de allí:
Saludos |
Herramientas | Buscar en Tema |
Desplegado | |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Directorios con TFileListBox | Drake | C++ Builder | 2 | 03-09-2006 16:15:19 |
TFileListBox | fjcg02 | OOP | 4 | 04-04-2006 17:25:19 |
Dias y meses | romansiux | Varios | 5 | 13-06-2005 17:19:12 |
existe algo similar a TFileListBox para Http? | miguel_fr | Internet | 1 | 14-04-2004 06:15:35 |
Tfilelistbox | Un abrazo | OOP | 2 | 15-05-2003 16:46:33 |
|