home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!paladin.american.edu!auvm!SOFT.IEND.WAU.NL!FRED.DEVET
- X-Envelope-to: DBASE-L@NMSUVM1.BITNET
- Content-transfer-encoding: 7BIT
- Message-ID: <01GOMGDUZU9E0026ND@NET.WAU.NL>
- Newsgroups: bit.listserv.dbase-l
- Date: Thu, 10 Sep 1992 14:49:21 +0100
- Sender: "Discussion on the use of the dBase language and related
- dialects" <DBASE-L@NMSUVM1.BITNET>
- From: Fred.deVet@SOFT.IEND.WAU.NL
- Subject: re: Indexes?
- Lines: 29
-
- DBASE VI 1.5 offers just the tool you need for browsing a specific subset of
- your database.
- The new feature is called : Set Key To [Range]
-
- The Set Key To command does almost the same as a Set Filter command, but is
- smart enough to use an existing index.
- Further information on Set Key To in the manual and in the TechNotes that
- come with this new version of DBASE IV.
-
- Example:
- you have a database Parts containing the fields Part_no and Part_name.
- There is an existing index on Part_no
- This index must be the active one.
-
- Now with the commands:
-
- Use Parts
- Set Order to Part_no
- SET KEY TO "AA"
-
- you will immediately have a filter set to all records containing a Part_no
- starting with "AA".
-
- If you need the description field in alphabetical order, just use an index
- made of Substr(Part_no,1,2)+PartName
-
- Hope this helps,
-
- Fred de Vet, Agricultural University, Wageningen, Holland
-