Recent

Author Topic: How to list directories ?  (Read 5395 times)

b0dd4h

  • Newbie
  • Posts: 2
How to list directories ?
« on: May 05, 2005, 05:24:47 pm »
I would like to list all files from a directory in a ListView or a TreeView, but i dont know how to do this.
Someone could help me posting a example ?

Sorry for my mistakes, english isn't my native language  :(

matthijs

  • Hero Member
  • *****
  • Posts: 537
How to list directories ?
« Reply #1 on: May 05, 2005, 07:15:43 pm »
Have a look at this http://www.festra.com/eng/snip04.htm It is an example for Delphi, but it will work in Lazarus as well.
What's in a sig? Would my posting look less if it didnot have a sig? (Free after William S.) :)

:( Why cannot I upload my own Avatar? :(

b0dd4h

  • Newbie
  • Posts: 2
How to list directories ?
« Reply #2 on: May 05, 2005, 07:21:13 pm »
matthijs, thanks !!
I will try this example

# Edit

Worked !

In this part, i chaged the '\' for '/', only this and worked, thanks again :D

if StartDir[length(StartDir)] <> '\' then
    StartDir := StartDir + '\';

 

TinyPortal © 2005-2018