home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / bit / listserv / dbasel / 948 < prev    next >
Encoding:
Text File  |  1992-09-10  |  1.4 KB  |  43 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!paladin.american.edu!auvm!SOFT.IEND.WAU.NL!FRED.DEVET
  3. X-Envelope-to: DBASE-L@NMSUVM1.BITNET
  4. Content-transfer-encoding: 7BIT
  5. Message-ID: <01GOMGDUZU9E0026ND@NET.WAU.NL>
  6. Newsgroups: bit.listserv.dbase-l
  7. Date:         Thu, 10 Sep 1992 14:49:21 +0100
  8. Sender:       "Discussion on the use of the dBase language and related
  9.               dialects" <DBASE-L@NMSUVM1.BITNET>
  10. From:         Fred.deVet@SOFT.IEND.WAU.NL
  11. Subject:      re: Indexes?
  12. Lines: 29
  13.  
  14. DBASE VI 1.5 offers just the tool you need for browsing a specific subset of
  15. your database.
  16. The new feature is called : Set Key To [Range]
  17.  
  18. The Set Key To command does almost the same as  a Set Filter command, but is
  19. smart enough to use an existing index.
  20. Further information on Set Key To in the manual and in the TechNotes that
  21. come with this new version of DBASE IV.
  22.  
  23. Example:
  24. you have a database Parts containing the fields Part_no and Part_name.
  25. There is an existing index on Part_no
  26. This index must be the active one.
  27.  
  28. Now with the commands:
  29.  
  30. Use Parts
  31. Set Order to Part_no
  32. SET KEY TO "AA"
  33.  
  34. you will immediately have a filter set to all records containing a Part_no
  35.  starting with "AA".
  36.  
  37. If you need the description field in alphabetical order, just use an index
  38. made of Substr(Part_no,1,2)+PartName
  39.  
  40. Hope this helps,
  41.  
  42. Fred de Vet, Agricultural University, Wageningen, Holland
  43.