Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 23 in printed book and digital formats -- plus a one-year subscription (beginning with 24.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are short, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 24.4 ('Encryption')
Instant purchase and download via GumRoad!

COLUMN

Explore Your Files

Working with files and directories

Issue: 24.4 (July/August 2026)
Author: Stefanie Juchmes-Simonis
Author Bio: Stefanie studied computer science at the university in Bonn. She came into contact with Xojo due to the work of her brother-in-law and got a junior developer position in early 2019 at Monkeybread Software.
Article Description: No description available.
Article Length (in bytes): 14,932
Starting Page Number: 58
Article Number: 24409
Resource File(s):

Download Icon project 24409.zip Updated: 2026-07-01 15:25:57

Related Web Link(s):

ewriter>http

Excerpt of article text...

In this Spotlight, I'd like to show you four small solutions to everyday problems related to folders and files, where the MBS Xojo plugins can be very helpful.

Our App

In the application where I'd like to introduce these four handy everyday tools, there are two labels where we enter the path of the directory we're opening and one for the size of the directory (see Figure 1). Just below them is a ListDialog that will later be filled with the individual filenames and paths contained in the selected directory.

Next to the listbox are labels where we will enter information about the file currently selected in the listbox. In the upper-right corner, we have two checkboxes. One checkbox specifies whether we want to list our files recursively in the listbox—that is, whether we want to go into the subfolders and read the files from them as well.

The "Only visible" checkbox specifies whether only visible files should be listed, or also hidden files.

Finally, there is a button that displays the "Open" dialog, which we use to select the folder. When opening the dialog, the SelectFolderDialog helps us by allowing us to select only the appropriate folder directly. After the dialog returns the folder as a FolderItem, we store it in the window's directory property. We check whether the FolderItem is not nil so that we can exclude the possibility that the user canceled the dialog.

...End of Excerpt. Please purchase the magazine to read the full article.