Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: PowerBuilder
Expertise: Beginner
Aug 17, 1999

Getting All Files in a Directory

Question:
How do I loop through a window's subdirectory and get all the files one by one? I need to save each file in a specific format before saving it to a database.

Answer:
The PowerBuilder list box object has functions that will load the contents of a directory into the list box. You can specify whether you want files, directories, or both.

By requesting all directories first, and then files, you can recursively call the function to get all the files in the subdirectories.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date