Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Basic Powerbasic > Read Files of D...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 172 of 276
Post > Topic >>

Read Files of Directory in PBWIN 6/7/8

by Alen Hopek <alen.hopek@[EMAIL PROTECTED] > Jan 11, 2006 at 12:52 AM

Hallo,

i?m searching for a easy way to read all files of a directory and show
them in a listbox.=20

I get on display some entries but the first 7-8 of the listbox are
empty=20
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 =3D DIR$("C:\*.*")
=20
FOR x =3D 1 TO LEN(a)
 LISTBOX ADD hDlg, lID, a
 a =3D DIR$
NEXT x      =20

Thanx for Ideas

Greetings
Alen
 




 4 Posts in Topic:
Read Files of Directory in PBWIN 6/7/8
Alen Hopek <alen.hopek  2006-01-11 00:52:31 
Re: Read Files of Directory in PBWIN 6/7/8
changling <allspam@[EM  2006-01-11 11:07:14 
Re: Read Files of Directory in PBWIN 6/7/8
Alen Hopek <alen.hopek  2006-01-11 15:02:15 
Re: Read Files of Directory in PBWIN 6/7/8
Peter Manders <news@[E  2006-01-11 15:06:59 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 1:25:47 CDT 2008.