home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
zip
/
music
/
musinv32.lzh
/
M_INV.DOC
< prev
Wrap
Text File
|
1989-12-30
|
7KB
|
158 lines
MUSIC INVENTORY version 3.0
in GFA BASIC 3.0
by Larry D. Duke
I have a music collection that requires cataloging for insurance
purposes. For this reason, I wrote MUSIC INVENTORY in 1987 in
GFA BASIC 2.0. It served the purpose, but didn't have the "look
and feel" of a good GEM program.
I recently rewrote this program using dialog boxes and windows.
This is the result of that work. Since this is my first program
of substance using dialog boxes, I wanted to try all kinds of
things...changing dialog text and titles, button text, editable
fields, and the like. Let me know what you think.
***************************************************************
** Medium and high resolution only! **
***************************************************************
The program initialized itself by reserving memory for the data
array, the logical screen, and the resource, which contains
numerous dialog boxes and the menu. The fact that it is a
RAM-based data base should not cause too much of a problem,
unless you are a 520 owner with lots of desk accessories and
AUTO programs. Each entry contains only 84 bytes, so as plan on
9K of RAM used for each 100 entries you have in the data base.
The menu selection is relatively self explanatory. But, just in
case, we'll go over them anyway.
The letters in () are keystrokes for the command. Some require
an element to be selected in the window before they'll work.
DESK - THE DESK ACCESSORIES WORK!
DATA -
ADD to Collection (A) - Adds a new entry into the collection
list. The program automatically checks for memory available,
then draws a dialog box to assist you with the ADD. The top
part of the dialog box contains Radio Buttons for the Medium
of the recording (CD, LP, etc.) Click on the appropriate
button. The default cost will update when you do this. Type
the ARTIST NAME and ALBUM NAME, followed by the optional
entries of REMARKS and COST. The ARTIST NAME and ALBUM NAME
are required entries. The program will let you know if you
have left one of these out. When completed with the basic
entries, press ENTER or click on the DO MUSIC TYPE button to
further catagorize your new entry into type of music (Pop,
rock, country, etc.). The buttons on this are toggles,
select and deselect them by clicking on the appropriate
button. OK accepts the entry, updates the array, and returns
you for another add. Click on CANCEL to stop the addition of
more recordings. CANCEL disregards the entry and terminates
the ADD portion of the program.
UPDATE Recording (U) - Update a recording already in the
list. This option only works after you have selected an
entry by clicking on it in the window below. Allow you to
update an entry in a manner similar to the ADD.
VIEW Recording (V) - View a recording already in the list.
This option works as the UPDATE above, but does not allow you
to edit any portion of the entry. Click on the selection to
view in the window below.
DELETE Recording (D) - Delete a recording in the list. As
above, you must first select the entry to delete by clicking
on the entry with the mouse. A dialog box appears showing
artist and title. Make sure this is the one you want to
delete, the press RETURN or click on the OK button to delete
the entry. CANCEL leaves the data undisturbed.
PRINT OPTIONS (P) - Select this to get a printout of the
entire data base, or specific portions. Select the MEDIUM to
print (CD, LP, ALL MEDIA) on the left half of the box. The
right half, labeled MUSIC FILTER, allows you to further
specify what types of music to print. Selecting ON brings up
the familiar MUSIC TYPE dialog. OFF will not filter any
selection based on the type of music (all under the selected
media will print). Select the type of music within the
selected medium to print. OK completes this dialog and
returns you to the original PRINT dialog. Selecting PRINT
starts the printout of the selected media and music types.
QUIT - Quits the program. All data is saved if there has
been a change, otherwise, you are returned back to GFA BASIC.
SEARCH & STATS
SEARCH for ARTIST - A dialog appears prompting for the search
value. If the value appears anywhere within the ARTIST name,
it will be marked as found. Example: If you search for "E",
all artists names that contain an "E" or "e" will be
returned. The program tells you how many it has found, then
displays them in order. Select NEXT to see the next entry,
or CANCEL to stop the search. CANCEL will bring the last
entry found to the top of the window.
SEARCH for TITLE - Works as above, except the TITLE area is
searched.
STATISTICS (S) - Displays music statistics. The number,
total cost, and average cost of each medium and total
collection is determined and displayed.
****************************************************************
Version 3.1 update corrects and improves the following:
The bug in QUIT that did not save the data is fixed.
(Actually, I accidentally uploaded a version that I didn't mean
to last time. The bug was due to a typographical error...sorry)
The screen updates are much quicker. The program now uses a logical
screen and bitblt's to make and move the data. Much faster, looks
better, too. Great, especially with the Blitter chip and QUICKST.
The resource file is now embedded within the program. They said it
couldn't be done in GFA, but here's proof. (Michtron said that
it wasn't possible, upon initial release of GFA 3.0)
With the addition of the GFA BASIC COMPILER, the run-time module is
included.
**************************************************************
Version 3.2 update corrects and improves the following:
A bug in the dialog management that caused a system bomb if you pressed
the DOWN ARROW key while on the last editable text of the ADD
resource has been corrected. Thanks to T.KILBRIDE off GEnie who
pointed out this problem to me (The fix took just short of a
program re_write).
The SCREEN update is faster yet, by setting flags on the logical screen
beginning and end, now FULL and redraws are MUCH quicker. Also
corrected a minor bug when using desk accessories that use windows.
The resource has been changed to have extended object data, which is
used in resetting editable and selectable objects.
The STATISTICS area has been cleaned up. The previous version contained
a typographical error that caused erroneous readouts of total cost,
total number, and average cost. Thanks again, T.KILBRIDE.
***************************************************************
ASTRO BBS - Albuquerque, New Mexico
(505) 243-5606
Hours: 6:00 pm until 7:30 am weekdays
all day weekends
(all times are Mountain)
Larry D. Duke
GEnie Mail - L.DUKE