Staz Software
HomeFutureBasicSharewareOrderContact

Sample Code

30 Days
This is how you add 30 days (or any amount of time) to a date.

AppleScript Examples in FB
A plethora of FB-executed AppleScripts show how to do things like create an Appleworks doc, list folders at the root level, put lipstick on a lizard.

Bit Cheat Sheet
I am so bit-challenged that they made me ride the short bus to programmer's school. That's why I made this handy cheat sheet to help me pass the final exam.

Bring Windows Forward
When one window in an application is clicked, bring all of the application's windows forward.

CF Utilities
Ten helper functions for everything from comparing Core Foundations strings, to setting menu items, to setting window titles.

Computer Name
You can refer to a computer by name using this utility. Besides, it's much more polite.

CF Preferences
If you really want to do things the Apple way, why not try handling your prefs with Core Foundations strings. This will get you started.

Data Browser
Now version 2.0. Eleven easy to follow examples show the power of the data browser - [Data Browser for DumDums].

Finder - Display file from code
Use a one-line call to display a file (via FSSpec) in the Finder. When you make this function call, the system does a context switch to the Finder, opens the proper folder, displays and selects your file. Wow!

File Writable
This FN will absolutely, positively tell you if it is possible to write to a file.

Flush Volume
Flush volumes [even in OS X] so that server info is instantly updated.

Function Counter
The 'STAZ' resource holds a secret... It knows how many functions there are in your program. Here is the key to solving a mystery?

Hasp Routines
Want to protect your software with a Hasp usb, hardware lock? Bill Sanford has provided this simple project to show you how it is done.

Help Project
This help project (built with a Program Generator shell) sports a clean scrolling list on the left and a tool bar across the top. The tool bar includes a home icon and also allows you to print or exit. The html display is clean and allows access to the outside world with clicks to any url.

Launch File w/ App
Launch a file with a specific application. Kind of like eating peas with a particular knife.

Open 'C' Example
Use the KeySpan adapter to access serial ports from FB. Milk and sugar available on request.

Path Name
Here is a clean [toolbox] method for getting a pathname from a file spec record. It returns the result in a handle since it may easily be more than a 255 byte string.

RezLib
Do screen fades, reset monitor resolution, and more. Works in OS 9 and OS X.

Switching to FB Example
This is the complete application demonstrated in the 'Switching to FutureBASIC' book shipped with Release 7.

Timing Out Beta Copies
This sample code shows how to automatically time out beta copies of your software without lifting a finger. As it is built, each beta application is automatically set to expire in 30 days (or some other period of your choosing).

UNIX File Scan
Ken's UNIX file scan [by path name] will kick the butterbeans out of most search routines.

Update Appearance Button
The fool proof way to set a button and ensure that the change shows up in an appearance window. [Fool not included.]

FutureBASIC

Demo

Order

Tour

Tech Notes

FAQ

Sample Code

Web Sites

Mailing List

System
Requirements

blank