File abook.icn |
A simple addressbook application. A database is used to hold the addresses and is accessed using ODBC. A GUI provides access to the address book. Because of the use of the getLogin() procedure from addressdb.icn is is likely that this program won't work under Windows unless that procedure is improved.
The top half of the GUI provides an area for displaying views into the addressbook. The initial view is all addresses. The view can be changed by entering search criteria into the bottom half of the GUI which functions both as an address book search tool and as an address display/edit tool.
Selecting an address in the top half displays details of that address in the display/edit tool. Once the address details are displayed on the bottom half, they can be emended and resaved. Note that changing the name in the address will result in a new address entry. Delete the old address if you don't want both.
To produce a view of all addresses an any time, just clear the search/display/edit tool and perform a search. You can also clear the tool, create a new address entry, and save it into the address book.
Searches are caseless and position independent. Any combination of address fields (with the exception of the address itself and the miscellaneous-info field on the right side of the search/display/edit tool) may be used in a search.
The addressbook must exist before running this program. see the comments for the AddressDB class in addresssdb.icn for how to do so in PostgreSQL.
Author: Steve Wampler (sbw@tapestry.tucson.az.us)
This file is in the public domain.
This file is part of the (main) package.
Source code.Details |
Procedures: |
After successfully logging into the relational database, start up the address book GUI.
Global variables: |