Article Preview
Buy Now
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):
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 fullBeginner'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.