Alen Hopek
2006-01-10 23:52:31 UTC
Hallo,
i?m searching for a easy way to read all files of a directory and show
them in a listbox.
I get on display some entries but the first 7-8 of the listbox are empty
the rest shows me some filenames. What can be wrong ?
Or has somebody a better idea ? Here is my Code:
LOCAL a AS STRING
LOCAL x AS INTEGER
DIM Listing(1 TO 1000) AS STRING
a = DIR$("C:\*.*")
FOR x = 1 TO LEN(a)
LISTBOX ADD hDlg, lID, a
a = DIR$
NEXT x
Thanx for Ideas
Greetings
Alen
i?m searching for a easy way to read all files of a directory and show
them in a listbox.
I get on display some entries but the first 7-8 of the listbox are empty
the rest shows me some filenames. What can be wrong ?
Or has somebody a better idea ? Here is my Code:
LOCAL a AS STRING
LOCAL x AS INTEGER
DIM Listing(1 TO 1000) AS STRING
a = DIR$("C:\*.*")
FOR x = 1 TO LEN(a)
LISTBOX ADD hDlg, lID, a
a = DIR$
NEXT x
Thanx for Ideas
Greetings
Alen