home *** CD-ROM | disk | FTP | other *** search
- ;C
- ┌─────────────────────────────────────────────────────────────────────────────┐
- │ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ EXAMPLE # 9 ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ │
- └─────────────────────────────────────────────────────────────────────────────┘
- ┌─────────────────────────────────────────────────────────────────────────────┐
- │ │
- │ THE INPUT FILE: A DBase (DBF) file containing a list of computer experts. │
- │ │
- │ WHAT WE WANT: We will output the file's data in columnar format, with an │
- │ appropriate heading at the top of each column. We want │
- │ the contact's name, his voice number, and his fax number. │
- │ │
- │ HOW WE DO IT: When in DBF mode, there is no $FLINE. Rather, each record │
- │ is pre-parsed into fields. This makes our job very easy. │
- │ We do, however, have to check the DELETED field: if it is │
- │ set to "Y", the field has been deleted from the database, │
- │ although it has not yet been replaced or removed. We will │
- │ skip any addresses from "Faster Publishing Ltd", using the │
- │ IGNORE command. We will use the TRACE command to generate │
- │ a trace file that lets us watch the IGNOREs take effect. │
- │ │
- └─────────────────────────────────────────────────────────────────────────────┘
-
- ;P
-