Article Preview
Buy Now
FEATURE
Beginner Q and A
Answers for Beginner's Questions
Issue: 4.4 (March/April 2006)
Author: Christian Schmitz
Author Bio: Christian Schmitz is the creator of the Monkeybread Software Realbasic Plugins.
Article Description: No description available.
Article Length (in bytes): 13,116
Starting Page Number: 24
Article Number: 4410
Related Link(s): None
Excerpt of article text...
I recently had contact with some beginners and helped them with a few tasks in REALbasic.
Do a file list
If you want to have a listbox with a folderitem associated with each row, e.g., a file list, you can do that in a bad way.
The bad way is to have a column (invisible) with the absolute paths of the files and folders. While it is quite easy to do and beginners like to do it, you will run into trouble. First, the file may move while you have the absolute path in the listbox. Second, a path may not be unique on all file systems. And third, we have a much nicer solution. The good way is to simply assign the folderitem used to create the listbox row to the celltag property like this:
dim f as folderitem
...End of Excerpt. Please purchase the magazine to read the full article.