Getting all Filenames

Question:
I am using VB4.0 Pro (16 bit) in WFWG and need to read entire directory of files, one after the other, without using the common dialog control.

Answer:
Look at the Dir function. It will return you each file in a directory…I have used it successfully in a VB4 program. The first time you call the Dir function, you give it the directory name. Subsequent calls without the directory name will give you each file, one by one. Load the results in an array or listbox and work with them from there.

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist