05.03.2013 Views

Amiga Computing - Commodore Is Awesome

Amiga Computing - Commodore Is Awesome

Amiga Computing - Commodore Is Awesome

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

84<br />

SOFTWARE<br />

ou know, I've tried a few database<br />

programs in my time, but very few of<br />

them ever seem to attain that fine<br />

line balance between ease of use and power.<br />

Mostly you have one end of the scale tipped<br />

to one side at the detriment of the other To<br />

easy to use and they often seem to lack any<br />

real power. Too powerful and they become<br />

overly cryptic with masses of commands and<br />

features hidden away within an ominously<br />

imposing and large manual, that has a page<br />

count that would make the encyclopaedia<br />

Brittanica blush.<br />

Yes, there are very few which can claim to<br />

maintain their footing between these two<br />

extremes. Twist 2, from the ever prolific<br />

HiSoft, is one of them, however.<br />

Versatility is one of Twist 2's strengths.<br />

allowing you to organise information easily<br />

and quickly and to manipulate it using some<br />

extremely powerful functions and features.<br />

Any project from a simple card-file-type<br />

address book or a complete, integrated sales<br />

system with relations between many other<br />

database files are easily achieved using<br />

Twist 2_<br />

Creating and using a database generally<br />

consists of creating fields containing specific<br />

data which is collected into records and then<br />

organised into forms. The user can then<br />

access, search and generally process this<br />

organised data in many weird and wonderful<br />

ways using various functions and features<br />

built into the database.<br />

A quick scan of the reference section of<br />

the Twist 2 manual is evidence enough to<br />

realise you have a comprehensive and powerful<br />

suite of functions and features at your<br />

ingertips_ Thanks to the ARexx interface.<br />

those requiring even more power can turn<br />

their hand to this programming tool to create<br />

Oft*. • sa• -• • • •<br />

1E11110-4— NOW= 'Z.—.<br />

letZlet14-1-4-= Wiirt-sIZ:Z*. *Z. —<br />

,<br />

6Opp••••<br />

• • • • m. E t t l i 4 =<br />

0.<br />

•1<br />

• • • m . ,<br />

•<br />

•<br />

•<br />

•-•-<br />

MRS tkr•t---<br />

trat.lira.1<br />

3 yr.—<br />

Frequently-used re port proc c a n be<br />

sa ve d out to disk for quick a nd e a sy a cce e s<br />

-<br />

r<br />

e<br />

e<br />

•<br />

-<br />

•<br />

Looking<br />

good<br />

Presentation of your data is an important factor in how easy to<br />

read and informative your records look. Twist 2 allows you to easily<br />

create the look of your database via the Form editor. Using the<br />

mouse, simply click and drag the various form objects into<br />

position. sizing them to your requirements.<br />

These form objects include database Fields, Text for adding<br />

informative descriptions on the form. Box. which allows you to provide<br />

a visual indication of grouped Items. Image, to enable you to<br />

display icons on the form and, more Interestingly. File objects.<br />

File objects are quite a powerful feature within Twist 2 and allow<br />

you to use external files thanks to Workbench's Datatypes feature.<br />

Such external files can Include !FT' pictures, sound samples and<br />

any other filetype supported by the Datatype.<br />

Some of these form objects can also have attributes such as<br />

colour, allowing you to create a visually informative and even<br />

aesthetically-pleasing database.<br />

<strong>Amiga</strong> <strong>Computing</strong><br />

MAY 1995<br />

twi5t and<br />

Using tha report aditor, you can da•ign the way<br />

in which your data i• formatted in a report Me<br />

even more features and functions. The basic<br />

building block of a database is its fields,<br />

which are specific data elements of a<br />

specific data type. Twist 2 has four main<br />

types of data which are text, numbers<br />

(integer or floating point) or a calendar date.<br />

The mark of a quality database program is<br />

In what functions and processes can be<br />

applied to these fields. Twist 2's real power<br />

stems from its comprehensive array of functions<br />

which include statistical, boolean, geometric,<br />

text string and conditional functions -<br />

more than enough for most applications.<br />

CALCULATIONS<br />

You can assign a mathematical process to<br />

fields to automatically calculate figures_ For<br />

example, say your database has a floating<br />

point field called Value which holds the price<br />

of a certain product excluding VAT.<br />

However, you want to be able to include<br />

VAT should the need arise_ Therefore, you<br />

assign a field called VAT to be a floating<br />

point number which can either hold the number<br />

0, for no VAT or 17.5 for the current rate.<br />

You would thus edit the Value field to contain<br />

the expression (Total • (VAT 100)) +<br />

Total, which will give the full price including<br />

any VAT if present. Although a somewhat<br />

simple example. the range of functions and<br />

possible expressions is almost unlimited_<br />

Other field functions that can be applied<br />

include validation, which ensures the correct<br />

data is being entered. An example of this<br />

would be the VAT field. Obviously, the only<br />

values valid here are either 0 or 17.5.<br />

To ensure the operator cannot enter any<br />

incorrect figures, this field could be validated<br />

using the expression VAT =-0 II VAT<br />

=17.5_ In English, this expression is essentially<br />

saying that the VAT field can only have<br />

the number 0 OR (expressed as the II<br />

characters) 17.5 in it, and anything else is<br />

just not on!<br />

Thankfully, for those who are currently<br />

scratching their heads at the above expression,<br />

there is a complete reference section in<br />

the Twist 2 manual which describes aN toe<br />

various symbols and mathematical opera<br />

tors. If, after reading this, I can get the gist cd<br />

it, anybody can.<br />

There are also five attributes which Team<br />

2 can assign to a field. These are Not<br />

edrtable (pretty self explanatory), Required -<br />

which means the field must have data<br />

entered into it, Fixed - meaning once data<br />

has been entered, no further calculation at<br />

validation will be performed - Zero -<br />

empty. forces a field to a zero value if no<br />

data is present - and the last attribute. Fille_<br />

brings up a pop-up list which displays three<br />

settings. Fixed length. Compressed and<br />

Virtual, These are very useful when your<br />

database starts to attain mammoth<br />

proportions.<br />

When you save your database, every field<br />

and record is saved to disk. The default setting<br />

is Fixed length. which means all parts cd<br />

every record in the database, whether al<br />

characters are used or not, are saved to<br />

disk. If you have quite large text fields, the<br />

size of the database can rapidly become<br />

extreme, taking up copious amounts of<br />

valuable disk space.<br />

This problem can be avoided by the use<br />

of the Compressed option. If a field is set to<br />

compressed it is not stored in the main database<br />

file but in a second file which contains<br />

all the other compressed fields that happen<br />

to be present within the database. The<br />

obvious drawback, of course, is that the<br />

information takes a little longer to retrieve<br />

because Twist 2 can't immediately find it in<br />

the database file.<br />

The final setting is Virtual, and no, Twist 2<br />

doesn't come with a VR headset. The Virtual<br />

setting stores nothing at all in the database<br />

file; instead the content of the field is computed<br />

every time the record is used from the<br />

calculation attached to the field.<br />

Fields can also be Indexed, which means<br />

all values for a field are contained in a separate<br />

file and can be set to either ascending<br />

Anital<br />

Database<br />

•—•••<br />

NO W. 1 1 0 , ••••••<br />

=<br />

•<br />

—<br />

•<br />

f<br />

r<br />

t<br />

,<br />

m<br />

.<br />

ctrskli i F 4 s .<br />

-<br />

P l o r<br />

111 1 H 111114<br />

ihnik<br />

•-•<br />

tw<br />

01“•••••••••••••• _<br />

dna., ad<br />

A gre e t e xa mple of just wha t you ca n a chie ve<br />

using Twist 2 . This is a da ta ba se for Ow<br />

Amine t CD-R011, comple te with built-in file<br />

extractor<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!