[AccessD] File list to combo

Drew Wutka DWUTKA at marlow.com
Wed Oct 15 11:30:07 CDT 2003


All the files in a folder, or all the files on a drive, including
subfolders?

If it's just in a folder, use the Dir statement.  Use the callback function,
on the initialize 'code', just create a collection.  Then add the file names
to the collection, using Dir().  When you are done, the Count of the
collection is the number of files, and you can just fill the combo from the
collection.  I can whip it up real quick if you want.

Drew

-----Original Message-----
From: John Colby [mailto:jcolby at colbyconsulting.com]
Sent: Wednesday, October 15, 2003 10:27 AM
To: AccessD
Subject: [AccessD] File list to combo


Does anyone have code for getting a list of files in a directory into a
combo box - preferably a callback so that there is no 2k string limit.

John W. Colby
www.colbyconsulting.com


_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com


More information about the AccessD mailing list