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 14 in printed book and digital formats -- plus a one-year subscription 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 15.6 ('Green Screen Saver')
Instant purchase and download via GumRoad!

COLUMN

Column

Issue: 15.6 (November/December 2017)
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): 11,206
Starting Page Number: 78
Article Number: 15608
Resource File(s):

Download Icon project15608.zip Updated: 2017-11-01 11:56:12

Related Link(s): None

Excerpt of article text...

I'm sure I've mentioned using external items in various xDev articles, but I haven't written a full Beginner's Corner about them. It's probably about time as they're one of my favorite features of Xojo.

External items are very powerful as they can let you share code between projects. Sure, you could just copy/paste code or classes or modules between projects, but then each project has their own copy. What if you find a major bug in your code? Now you have to fix that bug in multiple projects.

With external items, each project points to a single master version of the code: any change to the master applies the change to all the projects that share that code.

That's powerful, but it's also potentially dangerous, so it's a good idea to understand how external items work.

The Basics

To create an external item, you have to do it inside a project. There you can create a module, class, window, or other object the way you normally would. Once that's done, you can select it in the Navigator and choose "Export" from the File menu to save a copy on disk.

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