Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Using the Lazarus IDE
»
General
»
How to list directories ?
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Register global hotkey
by
Thaddy
[
Today
at 06:28:54 am]
would multi threading hel...
by
speter
[
Today
at 05:29:22 am]
FPCupDeluxe unable to bui...
by
BradleySlavik
[
Today
at 04:06:30 am]
Strange Error when I use ...
by
TYDQ
[
Today
at 02:48:46 am]
Perlin Map 3D
by
Boleeman
[
Today
at 12:04:05 am]
X11Libre, finally and for...
by
Fred vS
[January 21, 2026, 10:20:53 pm]
Difference in formatting ...
by
Bart
[January 21, 2026, 09:49:01 pm]
What's wrong with my appl...
by
bourbon
[January 21, 2026, 09:04:40 pm]
TRichMemo install shows "...
by
rvk
[January 21, 2026, 07:47:30 pm]
How to observe the value ...
by
nouzi
[January 21, 2026, 06:26:13 pm]
Anti "churning" in solita...
by
TBMan
[January 21, 2026, 04:30:05 pm]
Lazarus for Windows on aa...
by
msintle
[January 21, 2026, 03:11:13 pm]
Perlin Noise Map With BGR...
by
Boleeman
[January 21, 2026, 01:36:13 pm]
Strange Mail from memo.mi...
by
Thaddy
[January 21, 2026, 01:27:19 pm]
[Solved] Lazreport. Sorti...
by
Petrus Vorster
[January 21, 2026, 11:39:09 am]
Regarding the issue of de...
by
Martin_fr
[January 21, 2026, 11:16:29 am]
[Windows] UTF8 encoding w...
by
Thaddy
[January 21, 2026, 10:42:15 am]
Pleas help, Synapse / Ind...
by
patyit
[January 21, 2026, 10:25:29 am]
Default, Manual Initializ...
by
Okoba
[January 21, 2026, 09:17:22 am]
Cannot see unit text - ed...
by
lorenzo
[January 21, 2026, 04:05:13 am]
AdvancedHTTPServer: A Go-...
by
egsuh
[January 21, 2026, 01:44:33 am]
ThemeServices.OnThemeChan...
by
440bx
[January 21, 2026, 12:16:35 am]
Cross Compile for Dos on ...
by
PascalDragon
[January 20, 2026, 10:54:36 pm]
Feature announcement: Fun...
by
PascalDragon
[January 20, 2026, 09:50:39 pm]
Access violation during d...
by
PascalDragon
[January 20, 2026, 09:49:09 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to list directories ? (Read 5407 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
Logged
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.
Logged
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
if StartDir[length(StartDir)] <> '\' then
StartDir := StartDir + '\';
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Using the Lazarus IDE
»
General
»
How to list directories ?
TinyPortal
© 2005-2018