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 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.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 limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 4.1

COLUMN

File Things, Part Two

Working with "folderitems"

Issue: 4.1 (September/October 2005)
Author: Marc Zeedar
Author Bio: Marc taught himself programming in high school when he bought his first computer but had no money for software. He's had fun learning ever since.
Article Description: No description available.
Article Length (in bytes): 18,529
Starting Page Number: 30
Article Number: 4113
Related Link(s): None

Excerpt of article text...

In the last issue I explained, in general terms, how folderitems work, and how to use them to read and write text and binary files. But folderitems can do a lot more. There are built-in methods for reading pictures, styled text, movies, sounds, and more. Today we're going to explore those features.

Built-in Folderitem Methods

Working with a folderitem's built-in methods for reading in pictures, styled text, movies, and sounds is easy: in most cases you simply read the item into a variable you've created for the purpose. For example, if f is a folderitem that points to a movie file and qt is designated a movie object, the following would read in the movie and place it inside the qt property:

qt = f.readAsMovie

Of course you also need some simple supporting code. Here's an example from today's demo project:

dim f as folderItem

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