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 15.4 ('Xojo in Germany')
Instant purchase and download via GumRoad!

FEATURE

Sharing Data for Health, Part 2

Designing and implementing an import engine

Issue: 15.4 (July/August 2017)
Author: JC Cruz
Author Bio: JC is a freelance writer based in British Columbia. He contributes regularly to MacTech Magazine and Dr Dobb's Journal. Away from the writing pile, JC spends quality time with his nephew, as a proper uncle should.
Article Description: 49Article Length (in bytes): 60,846
Starting Page Number: /c
Article Number: 15406
Resource File(s):

Download Icon project15406.zip Updated: 2017-07-02 23:29:55

Related Link(s): None

Excerpt of article text...

Part one of my article on data-sharing shows how I implemented an export feature to a personal-health solution. Now in part two, I shall show how I implement the import feature.

First, I explain the challenges in implementing the feature. I describe the import workflow, the algorithms that parse and extract the imported data. Next, I introduce the concept of a data-source. And I demonstrate how I build the import engine from a custom engine class.

Readers need a working knowledge of REALbasic and object-oriented design. An updated version of the FooHealth demo project (mk10.1) is available from the magazine's website.

The Import Feature

There are reasons why an import feature is more challenging to implement than an export one.

  • To start, I need to identify the import format. I do this by checking the file's name extension (simple) or by examining its contents (more reliable).

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