Home arrow Delphi-Kylix arrow Page 2 - Building a Mailing List with Borland Delphi
DELPHI-KYLIX

Building a Mailing List with Borland Delphi


Mailing lists can be useful for a variety of purposes. If you have a newsletter that you use to communicate with your customers, chances are you use a mailing list. This article, the first of two parts, will show you how to build a mailing list application.

Author Info:
By: Leidago
Rating: 4 stars4 stars4 stars4 stars4 stars / 3
September 27, 2006
TABLE OF CONTENTS:
  1. · Building a Mailing List with Borland Delphi
  2. · The Database
  3. · Building the GUI for the Application
  4. · How the program works
  5. · Status reports

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Building a Mailing List with Borland Delphi - The Database
(Page 2 of 5 )

It is up to you as to how much information about a contact you want to store in the database. In our database, we are only going to store the name, email address and group ID of a contact.

Start up MS Access and create a new database called "mailinglist." Then create a table called contacts. This table will have the following four fields:

Field Name

Data type

eid

Autonumber (primary key)

name

text

email

text

gid

number

The eid field will generate a unique number for each new contact that is created. This is important because we are going to use this number to identify the contact when it has to be placed in a group. The only other field that I think needs explaining is the "gid" field. This field will identify the group to which the contact belongs. If a contact does not belong to any group, this field will contain a zero. Below is a screen shot of the contacts table in design view:

The next table we need to create is the groups table. This table will only contain two fields:

Field Name

Data type

groupID

Autonumber (primary key)

groupname

text

Below is a screen shot of the groups table in design view:


blog comments powered by Disqus
DELPHI-KYLIX ARTICLES

- Loading an XML Document into the DOM
- Delphi Wrapper Classes and XML
- Delphi and the DOM
- Delphi and XML
- Internet Access: Client Service
- Finishing the Client for an Internet Access ...
- The Client for an Internet Access Control Ap...
- User Management for an Internet Access Contr...
- Important Procedures for an Internet Access ...
- Server Code for an Internet Access Control A...
- Constructing the Interface for an Internet A...
- Building a Server Application for an Interne...
- Building an Internet Access Control Applicat...
- Client Dataset: Working with Data Packets an...
- Using the Client Dataset in an N-Tiered Appl...

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 3 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials