realbasic-nug
[Top] [All Lists]

Re: Folder items/files

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Folder items/files
From: "Mr. Weasel Willits" <bmxer01 at pacbell dot net>
Date: Sun, 30 Dec 2001 13:25:57 -0800
Objective: Open a folder containing a bunch of images and display them in the order they appear in the folder.

Problem: I haven't figured out how to access the contents of a folder in a way that lets me access it's contents in a sequential order. Psuedo code of intent is as follows:


Hi Bean!

What you want to look at is the .item property of the folderitem. If a folderitem is a directory (if folderitem.directory = true) then you can loop through the items.An item is a file or folder inside the current folder.


for x = 1 to folder.count
    Picture = folder.item(x).openAsPicture
next

Look in the language reference and read through all of the folderitem methods and properties, then look at the examples.

--

-----------------------     Seth Willits    --------------------------
The problem of defense is how far you can go without destroying from within what you are trying to defend from without. -- Dwight D. Eisenhower
----------------- http://freaksoftware.tripod.com/ -------------------



<Prev in Thread] Current Thread [Next in Thread>