# Learning FutureBasic 1994 — source transcripts, page 1

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/va-learning-futurebasic-1994-329600/1)

## Transcribed source material

Machine transcriptions and image descriptions; uncertain copy may be marked [illegible]. Verify against the linked originals. Historical rights remain with the original owners.

These are transcribed excerpts, not the full publications. Open the originals for remaining pages.

### Image 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-learning-futurebasic-1994-329600/1#scan-1aef922ba661c921a62a72f0b9c7ca9033d6ac4c7d51b1ccde22dfcdbc82095e)

Transcribed text:

LEARNING FutureBASIC

MACINTOSH BASIC POWER

By L. Frank Turovich

Image description: A book cover with a pale green-to-white gradient background, large bold black stacked title letters with white offset shadows, a horizontal black rule, a subtitle line in spaced capitals, and the author credit in the lower right corner.

Reading notes: Title letters have white offset shadow effects that could be misread; transcription follows the printed words as displayed. Title capitalization in the transcript follows the visible mixed-case styling of FutureBASIC and LEARNING.

Printed product names: FutureBASIC

Languages: English

[Original Image 1](https://www.vintageapple.net/files/baf386c5e870ee47f143ec22a79f81c9a17aaeccf8018505ec0464f9b3964465/5c2df18971ffc91aeb436501.webp)

### PDF page 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-learning-futurebasic-1994-329600/1#scan-0fb51a3dd323571091f5f4c5fd139297531e6deaeecff27305c23afb3bb87528)

Transcribed text:

LEARNING FUTUREBASIC

MACINTOSH BASIC POWER

By L. Frank Turovich

Image description: A book cover with a pale green-to-white gradient background, bold black condensed title lettering with white drop shadow, a horizontal black rule beneath the title, a spaced-out subtitle line, and the author credit in the lower right corner.

Reading notes: Title and subtitle use a white offset shadow effect; transcription follows the black lettering. Title's 'FutureBasic' appears as one word with a capital B, transcribed as printed.

Printed product names: FutureBasic

Languages: English

[Original PDF page 1](https://www.vintageapple.net/files/5d2b687d60dd1b7dbbbcad69d087afe54ed2ad055fe6ad18d84e3459e5a4092d/Learning_FutureBasic_1994.pdf#page=1)

### PDF page 2

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-learning-futurebasic-1994-329600/1#scan-be6d68d905ac9f4e72e977997563f59f8d4b8b3e991c7071ec020c7726f0fb9f)

Image description: The image is a entirely blank white page with no visible artwork, layout elements, or text.

[Original PDF page 2](https://www.vintageapple.net/files/5d2b687d60dd1b7dbbbcad69d087afe54ed2ad055fe6ad18d84e3459e5a4092d/Learning_FutureBasic_1994.pdf#page=2)

### PDF page 3

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-learning-futurebasic-1994-329600/1#scan-d02a2bdcf4f660aae857fc9038a3823c7ad7e45423e03362589bb7d1bfc4a8ca)

Macintosh BASIC Power

Transcribed text:

SENTIENT   FRUIT
llARNING
f   U T U R I   B A S   I   C™
Macintosh   BASIC   Power
by L. Frank Turovich
Copyright ©1994 Sentient Fruit
All   Rights Reserved Worldwide
Requirements
The source code   in   this book was   designed   to work with the
FutureBASIC™   programming   language. All development   was   done
under FutureBASIC versionl.02.

Reading notes: Version string 'versionl.02' appears to be OCR rendering of 'version 1.02'

Printed product names: FutureBASIC

Printed dates: 1994

Languages: English

[Original PDF page 3](https://www.vintageapple.net/files/5d2b687d60dd1b7dbbbcad69d087afe54ed2ad055fe6ad18d84e3459e5a4092d/Learning_FutureBasic_1994.pdf#page=3)

### PDF page 4

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-learning-futurebasic-1994-329600/1#scan-9de59c77d526dac5e5df0dcf1bdbab60fb2962dfe9572c4fcaa141299166c48d)

Learning FutureBASIC: Macintosh BASIC Power

Transcribed text:

Learning FutureBASIC: Macintosh   BASIC   Power
by L. Frank Turovich
Questions
z.edcor,   Inc. does not support, nor is   z.edcor,   Inc. responsible for any of the contents of this producl All
inquirtes and questions regarding this product or any other products produced by   Sentient   Fruit should
be directed to   ...
Sentient   Fruit"'
MACINTOSH   CONSULTING   •   PROGRAMMING   •   DOCUMENTATION
PO   BOX   13362   •   TUCSON   •AZ   85732-3362
We can also be reached online at:
Amertca   Online:
Internet:
TUROVICH
turovich@aol.com
Print history
Copyrtght   ©1994   Sentient   Fruit
Second Printing March 1994
Printed in the   United   States   of   Amertca
ISBN   0-9639552-0-9
Trademarks
FutureBASIC is a trademark of   z.edcor,   Inc.
Macintosh and ResEdit are trademarks of   Apple Computer, Inc.
Sentient   Fruit   and the Mac-in-the-Tree logo are registered trademarks ofL. Frank Turovich.
All other products and logos mentioned in this documentation are the trademarks or registered
trademarks of their respective owners.
Legalese
LIMITATION   ON   WARRANTIES AND LIABILI'IY
EVEN   IBOUGH   SENTIENT   FRUIT   AND L. FRANK TUROVICH HAVE REVIEWED   IBIS   MANUAL,
SENTIENT   FRUIT AND L. FRANK TUROVICH MAKE   NO   WARRANIY   OR   REPRESENTATION,   EIIBER
EXPRESSED   OR   IMPLIED, WITH   RESPECT   TO   IBlS   MANUAL, ITS   QUALl'IY,   ACCURACY,
MERCHANTABILl'IY,   OR   FITNESS   FORA   PARTICULAR   PURPOSE.   AS A RESULT,   IBlS   MANUAL   IS
SOLD   "AS   IS"   AND   YOU,   THE PURCHASER, ARE   ASSUMING   1lIE   ENTIRE   RISK   AS TO ITS   QUALI'IY
AND ACCURACY. IN   NO   EFFECT WILL   SENTIENT   FRUIT   OR   L. FRANK TUROVICH BE HELD LIABLE
FOR DIRECT, INDIRECT,   SPECIAL,   INCIDENTAL,   OR   CONSEQUENTIAL   DAMAGES RESULTING   FROM
ANY DEFECT   OR   INACCURACCY IN   IBIS   MANUAL, EVEN IF   ADVISED   OF   THE   POSSIBILI'IY   OF   SUCH
DAMAGES.   IBE   WARRANIY   AND   REMEDIES   SET   FOR1H   ABOVE   ARE   EXCLUS~   AND IN   LIEU   OF
ALL   OIBERS,   ORAL,   OR   WRITIEN,   EXPRESS   OR   IMPLIED.   SOME   STA'IBS   DO   NOT ALLOW THE
EXCLUSION   OR   LIMITATION   OF   IMPLIED   WARRANTIES   OR   LIABILI'IY FOR INCIDENTAL   OR
CONSEQUENTIAL   DAMAGES,   SO   THE   ABOVE   LIMITATION   OR   EXCLUSION   MAY NOT   APPLY   TO   YOU.
Production
This book was wrttten on a Macintosh II, System 7.1 using FrameMaker® for the words,   FutureBASIC™
for the source code,   Resorcerer®   and   ResEdit™   for the resources, DeskPaint®, DeskDraw®, and
ClartsWorks™   for the graphics. It was prtnted on a Texas Instruments microLaser PS-35 at   300   DPI
using Bookman for body text, Helvetica for titles, Courter for source code, and Symbol for bullets.

Reading notes: OCR damage in several words (e.g., 'Amertca', 'IBIS', 'INACCURACCY', 'Courter' possibly 'Courier'), so spelling is preserved as extracted. Reading order of the Internet/Online contact block is uncertain.

Printed product names: FutureBASIC · Macintosh · ResEdit · Resorcerer · FrameMaker · DeskPaint · DeskDraw · Texas Instruments microLaser PS-35 · Bookman · Helvetica · Symbol

Printed dates: 1994 · March 1994 · System 7.1

Languages: English

[Original PDF page 4](https://www.vintageapple.net/files/5d2b687d60dd1b7dbbbcad69d087afe54ed2ad055fe6ad18d84e3459e5a4092d/Learning_FutureBasic_1994.pdf#page=4)

### PDF page 5

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-learning-futurebasic-1994-329600/1#scan-56c3e8552ce3cf2be6984aab5f5f44ef6d2f3022dcaf6b4fad9a875b9db89e99)

Transcribed text:

Acknowledgements
This book is the cumulation of months of hard work both in writing and
programming. It could not have happened without the support of the
following people:
First and foremost, I must   thank   my loving wife Lora for her continued
support and great patience   in   editing numerous revisions.
John "the pitbull" Richetta for his ruthless editing style. All mistakes
remaining   herein are mine alone.
The brothers Gariepy: Michael, the   CEO   of Zedcor, Inc. for allowing me to do
it,   Peter   for the bully cover design, and Andy for answering my endless
questions.
Ross Lambert of Ariel Publishing for suggesting it.
And finally to my test readers who saw a very early version of what you now
hold in your hands: Chris Stasny, Chris Dwyer, and   Paul   Valach.

Reading notes: Source is an acknowledgements section with no explicit heading, product names, prices, or dates.

Languages: English

[Original PDF page 5](https://www.vintageapple.net/files/5d2b687d60dd1b7dbbbcad69d087afe54ed2ad055fe6ad18d84e3459e5a4092d/Learning_FutureBasic_1994.pdf#page=5)

### PDF page 6

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-learning-futurebasic-1994-329600/1#scan-aa5a4b1de8cd073d54240a8fcdd3a9e7d8d446e8244230041bc1e542ea8cc11e)

Transcribed text:

Table of Contents
Int:roduction ................................................................. 7
Pro grain   Design ......................................................... .
Events
Menus
15
33
43
Windows ..................................................................... 67
87
103
123
143
151
169
Buttons
Dialog Events
.........•..•••••••......................••....•...•••.....•..•.•••..•
...........................................................
Edit   & Picture   Fields ................................................ .
Scroll   Buttons
.................................................................... Records
Files   .........................................................................
Globals   &   Includes   .   .   .   .   .   .   .   .   .   .   .   ..   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   . 197
Resources .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   . 211
.Al.erts ..   ..   .   ..   .   .   • .   .   • .   • .   .   ..   ...   .   ..   .   ..   .   ..   • ..   ..   .   ..   .   .   • .   ..   ...   .   ..   .   .   .   .   .   • • ..   • ..   .   ..   .   .   .   .   ..   231
Strings   &   Text   .....•....................................................
Edit Menus ..............................................................   .
Printing ...............................................•.•..................
Application Resources ..............................................   .
Final Touches   .•.•....••...••....•......•..........••••••••..•.••........
247
263
279
297
313
Bibliography ..   ..   .   .   ..   ..   .   ..   .   ..   ..   .   ..   ..   ..   .   ..   .   ..   .   ..   ..   .   .   ..   ..   .   ..   .   ..   .   ..   .   ..   .   ..   .   ..   . 319
Appendix ..   ..   .   ..   .   ..   .   ..   ...   .   ..   .   ..   .   ..   .   ..   .   ..   .   ..   .   .   .   ..   ..   .   .   ..   .   .   .   .   ..   .   ..   .   ..   ..   .   .   ..   .   .. 321
Index ......................................................................... 343
5

Reading notes: OCR spacing and hyphenation artifacts in table of contents entries such as 'Int:roduction' and 'Pro grain Design' Dot leader and page-number alignment is unclear in several entries

Languages: English

[Original PDF page 6](https://www.vintageapple.net/files/5d2b687d60dd1b7dbbbcad69d087afe54ed2ad055fe6ad18d84e3459e5a4092d/Learning_FutureBasic_1994.pdf#page=6)

### PDF page 7

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-learning-futurebasic-1994-329600/1#scan-c42eb4f81cf3a447d5a5d56fe40f0111bdc13e0fc8218981fa7d294ac38c682c)

Transcribed text:

CHAPTER 1
Introduction
Welcome
Welcome to   Learning   FutureBASIC™:   Macintosh   BASIC   Power.
Since   its release   FutureBASIC   has rightly gained a good share of enthusiastic
followers. Its ease-of-use, extensive BASIC command set, built-in access to
the Toolbox, flexible environment, and versatility in creating both stand-alone
applications and code resources have been welcomed with open arms by the
BASIC community.   FutureBASIC   has made the writing of programs easy and
fun   for professionals and hobbyists   alike.
Old   followers of   ZBASIC™   (FutureBASIC's   predecessor) are amazed at the
wealth of new features contained in this powerful language. New followers
find its arsenal of capabilities astounding. Professionals who haven't used
BASIC in years are finding it easy to write code   in   hours instead of days.
Worldwide, people are using it to create programs that range from   CASE   tools
to Mac-to-mainframe communications, from   Quick.Time™   editors to
educational software, from graphics programs to children's games, and
everything in between.
The Rise of   BASIC
BASIC has always been a popular language.   Since   its   beglnning   in the early
1960's,   BASIC has been available on nearly every computer ever created. Its
inclusion with most home computers guaranteed a wide distribution, and its
ease of learning made it the language most   beginners   turned to when they
started to program.
Introduction   7

Reading notes: OCR reads 'beglnning' with an apparent 'l' in place of 'i', likely a damaged character

Printed product names: FutureBASIC

Printed dates: 1960's

Languages: English

[Original PDF page 7](https://www.vintageapple.net/files/5d2b687d60dd1b7dbbbcad69d087afe54ed2ad055fe6ad18d84e3459e5a4092d/Learning_FutureBasic_1994.pdf#page=7)

### PDF page 8

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-learning-futurebasic-1994-329600/1#scan-1857e841bb05f575d8c34127d3ddbea1029744df45fbcdb9e8430d7d38e10f42)

The Rise of BASIC

Transcribed text:

The   Rise of BASIC
Sadly, BASIC has always had a reputation for being too slow (most BASICs
were interpreted), too general (it has commands for nearly   everything),   and
too clumsy when it came to writing "real programs".
But   Fu:tureBASIC   (hereafter referred to as FB) addresses all of those points
and more. FB is a compiler, so it's fast. While   it   does have an extensive   300+
command set, it doesn't try to do everything, just enough to let you get the job
done. Nor is it clumsy: FB offers all the high-level structures found in other
programming languages including   SELECT   CASE,   LOCAL   FNS,   INCLUDE files,
access to system equates, and much more. With FB you can write "real
programs"   quickly and easily, and you can create all of those widgets that
make the Macintosh so much fun. For example, you can write desk
accessories, control devices, custom windows, menus, and controls - the
choices are endless.
The   Plan
The outline for this book is simple. Users have been demanding a
comprehensive book that would lead them step-by-step into the exciting
world of Macintosh programming. While the FB manuals have all the
necessa:iy   clues, those clues aren't really drawn together into a complete,   full-
featured application where a new user can get all the answers. The   Getting
Started   manual included with FB nibbles around the edges, but never really
tackles the tough issues facing a   beginning   Mac programmer.
With this book, I've tried to anticipate and respond to your questions as they
might come up. I walk you step-by-step through an entire Macintosh
application, from concept to completion. Along the way, 111 also explain what
goals we want to achieve, how we'll accomplish those goals, as well as
providing helpful insights into the reasoning behind these choices.
RGURE1.   Data Entry window in SimpleBase.
Slmplebase   Data   Ent
Record#   4 or 6 records
Name:lsentlent   Fruit'"
Address:   !Po   BOH   13362
City:   lrucson
State:lnz   I
Zip:   185732-3362   I
Phone#[   J
Faa#L   J
Dept:   ®Programming
0Merketlng
Qornce Help
8   Introduction
I
I
I
H New Record   m
(   Show   First   )
(   «   Preu   «   )
(   »Neat»   )
(   Show   Lest   )
Find
Claar

Reading notes: OCR damage in 'necessa:iy' and 'nibbles around the edges' passages Garbled figure text in SimpleBase window labels such as 'Name:lsentlent' and 'Zip:   185732-3362'

Printed product names: Fu:tureBASIC · FB · SimpleBase · Getting Started · Macintosh

Languages: English

[Original PDF page 8](https://www.vintageapple.net/files/5d2b687d60dd1b7dbbbcad69d087afe54ed2ad055fe6ad18d84e3459e5a4092d/Learning_FutureBasic_1994.pdf#page=8)

### PDF page 9

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-learning-futurebasic-1994-329600/1#scan-74232580388857f83d5c58c818ddd6ec09561710cae130fc1c058eb7c307ef16)

Transcribed text:

SimpleBase
SimpleBase
To provide a reference point for explanations, I wanted an example program
that would draw on a host of Macintosh features, as well as using Toolbox
commands and resources. What I came up with is   SimpleBase,   a small
database program that a business might use to track employee information.
As   I said, it's simple, so I won't be going into how to calculate employee
benefits or taxes, but I will examine all of the common Macintosh features
we've all come to know and love.   Things   like menus, windows, buttons, scroll
bars, alerts,   printing   and much more   will   be examined in depth. Each   will   be
introduced as it is required by the program along with copious explanations
along the way.
I've also attempted to throw in just about every technique, shortcut, or
obscure bit of knowledge I've acquired through years of programming the
Mac - information I would have killed for when I first began. Most of these
never appeared in any programming book, but were discovered after lots of
sweating, cursing, rebooting, and in conversations with fellow programmers.
Of   course, pure inspiration also played a big role.
Theme of Things
With all this explaining to do, I decided I needed a nifty theme to run through
the book, one that really ties everything together and keeps people interested.
I chose to use an exercise theme as my   guide,   since it seemed to fit both the
style of this book as well as my current workout   regiment.   Thus each chapter
is divided into the following four sections:
Warm-up
Each chapter starts by telling you what the chapter offers. It's followed by a
few terminology definitions, explanations of various common programming
tasks relevant to the chapter topic, as well as numerous step-by-step program
examples, insightful illustrations, and lots of straight   talk   about why you
should adhere to Apple's interface standard.   You'll   get your feet wet on some
fundamental Macintosh programming ideas, but the water will never rise over
your ears.
Introduction   9

Reading notes: Possible reading-order ambiguity around 'Theme of Things' heading placement

Printed product names: SimpleBase

Languages: English

[Original PDF page 9](https://www.vintageapple.net/files/5d2b687d60dd1b7dbbbcad69d087afe54ed2ad055fe6ad18d84e3459e5a4092d/Learning_FutureBasic_1994.pdf#page=9)

### PDF page 10

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-learning-futurebasic-1994-329600/1#scan-d051a02e328761b339dcd460afc1d594d0a98ddbefc6603d227f8c311cff5bce)

Transcribed text:

Regular   Exercise
Regular Exercise
This   section is where we'll actually develop the program code for the
SimpleBase   application. I11 walk you step-by-step through the various
routines expla1n1ng their purpose, as well as   showing   you their development
from   initial   concept to   final   implementation.
Each chapter in the project has one or more files on disk that show exactly
how each program step progressed.   Print   them out, pull up a lounge chair
under your   favorite   shady tree, sip some ice tea (no sugar please), and
examine   them as you read each chapter in order to better understand the
.   project.
Peak   Performance
1h1s   is where we pull out all the stops. You may want to skip this section the
first   time   through as it   ts   more complex and isn't always relevant to the
chapter topic. However, once you've completed the project,   come   back and
browse through it for advanced tips and programming techniques that you
can use to modify   SimpleBase   or your other programs.
Cooldown
Flnally,   we   wrap up all the concepts explained in the chapter into a neat   little
bundle. This   will   emphasize the chapter's   main   points, and point out a few
key concepts you should remember.
Where   Should   I   Start?
Like they always say,   "an   application of   10,000   lines   begins   With   one
keyword," or something   like   that. That's exactly how you should approach
this   book   - one step at a time.
Neuer   Programmed Before?
If   you don't already have it,   call   Zedcor at 602.881.8101 and order their
"Programming   the Macintosh   With   FutureBASIC" manual.   This   interactive
manual   takes   you from programming ground zero all the way to   handling
simple Macintosh features. A good place to start   1f   you haven't done any
BASIC   programmtng   before.
Head down to your local library and pick up a few   programming   books that
explain BASIC programming concepts. Explore the   possibilities   in those
books until you feel comfortable   With   loops, data   types,   and structured
programming concepts.
10   Introduction

Reading notes: Several OCR-style character errors (e.g., 'I11', 'h1s', 'Flnally', 'Neuer', 'programmtng') in the source text. Reading order of the page is uncertain due to the section-based layout of the copy.

Printed product names: Programming the Macintosh With FutureBASIC · SimpleBase

Languages: English

[Original PDF page 10](https://www.vintageapple.net/files/5d2b687d60dd1b7dbbbcad69d087afe54ed2ad055fe6ad18d84e3459e5a4092d/Learning_FutureBasic_1994.pdf#page=10)

### PDF page 11

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-learning-futurebasic-1994-329600/1#scan-2e37ad160c6ae4e13a67ac9ba55d57b29c2a9c6242b7cbff9d0e0eed4f53bdef)

If You've Programmed BASIC Before

Transcribed text:

If   You've Programmed BASIC Before
Note that most of these books are not geared to programming the Macintosh,
but are aimed instead at other computers. Believe me, they're still useful.
You'll   probably have to fiddle with some syntax differences, but with a few
changes, many of their exercises   will   run just fine.
When you feel ready, start at the "Program Design" chapter, concentrate on
the Warm-up section to get the main concepts behind each chapter. Then, go
through the Regular Exercise section carefully as we create the   SimpleBase
project, making sure you understand each step before going on to the next.
When you've finished the project, use the same techniques explored here to
create your own program.   Say   to yourself,   "Okay,   for my program I need to
add   ... ",   and then review the appropriate chapter to add a particular program
feature. Finally, go back and read the Peak Performance sections to learn
even more.
{{You've   Programmed BASIC Before
Read through the Warm-up sections to get the main concepts for the chapter,
then read the Regular Exercise section and create the   SimpleBase   project.   Go
back after you've finished the project and reread the Peak Performance
sections for additional programming knowledge you may find useful in other
projects.
References
If   you don't know   it   already, I'll tell you now: you can't program in a vacuum.
Programming the Macintosh requires knowledge of the entire Macintosh,
from interface to the   nitty-gritty   of byte passing. Here are some references I
have found   veiy   useful, both in writing this book, and in my daily
programming endeavors.
Inside Macintosh,   2nd Edition
The absolute best reference work for programming the Macintosh is Apple's
own   Inside Macintosh   series. Even as I   write   this, the second edition series is
almost completely published. The 18 volumes replacing the   original   six   have
expanded both in size and depth of explanation.   If   it's about programming the
Macintosh, you'll find it there.
If   you do any type of commercial or consultant programming, you shouldn't
be without any of them.   If   you're a weekend programmer, I urge you to get the
volumes that most interest you. In either case, you won't be sorry.
Introduction   11

Reading notes: Heading and section header formatting in source is inconsistent; the '{{' prefixed section appears to be a second heading.

Printed product names: Macintosh · BASIC · SimpleBase · Inside Macintosh

Printed dates: 2nd Edition

Languages: English

[Original PDF page 11](https://www.vintageapple.net/files/5d2b687d60dd1b7dbbbcad69d087afe54ed2ad055fe6ad18d84e3459e5a4092d/Learning_FutureBasic_1994.pdf#page=11)

[Next transcribed scans](https://www.vintageapple.net/transcripts/media/va-learning-futurebasic-1994-329600/2.md)
