home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / misc / 1685 < prev    next >
Encoding:
Internet Message Format  |  1992-09-07  |  1.8 KB

  1. Path: sparky!uunet!rocket!newshost!pitaro
  2. From: pitaro@joker.sanders.lockheed.com (Michael Pitaro)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: Queries under CodeBase 4.5 for Windows
  5. Message-ID: <PITARO.92Sep4223326@joker.sanders.lockheed.com>
  6. Date: 5 Sep 92 02:33:26 GMT
  7. References: <=ylnxvn.whedon@netcom.com>
  8. Sender: news@rocket.sanders.lockheed.com
  9. Reply-To: pitaro@rocket.sanders.com
  10. Distribution: na
  11. Organization: Lockheed Sanders, Inc.
  12. Lines: 27
  13. In-reply-to: whedon@netcom.com's message of 3 Sep 92 18:37:12 GMT
  14.  
  15. In article <=ylnxvn.whedon@netcom.com> whedon@netcom.com (Bill Whedon) writes:
  16.  
  17.    From: whedon@netcom.com (Bill Whedon)
  18.    Keywords: CodeBase Windows Queries
  19.    Date: 3 Sep 92 18:37:12 GMT
  20.  
  21.    I'm having a bit of fun with CodeBase 4.5 at the moment, trying to figure
  22.    out (in the absence of example code) how to do the following:
  23.    I have a database with customer records and sales info
  24.    I want to do the following selection:
  25.       SALES_DOLLARS > 1000 AND CREDIT_AVA >= 10000
  26.    And build a new .DBF file from the result
  27.  
  28. This should be relatively easy to do (famous last words), unless
  29. you're leaving something out. :-) There are examples in the manual for
  30. printing out an database using a filter (e.g. CodeBase 4.5 Manual,
  31. page 201).  Modify that one to print to a flat file i.e. to disk.
  32. After you print out to a flat file you can read it in again by
  33. modifying another example program in the book (CodeBase 4.5 Manual,
  34. page 9).  There are other ways to do this but this one is conceptually
  35. simple.
  36. --
  37. Michael Pitaro                              Lockheed Sanders, Inc.
  38.                                             PO Box 868, MER24-1583C
  39. Signal Processing Center of Technology      Nashua, NH 03061-0868
  40. pitaro@rocket.sanders.com                   603/885-9794 (Voice)
  41. (or) ...!uunet!rocket!pitaro                603/885-0631 (FAX)
  42.