home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / 8931 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.7 KB

  1. Path: sparky!uunet!spool.mu.edu!darwin.sura.net!gatech!concert!rutgers!cmcl2!adm!smoke!brl.mil!fsbrn
  2. From: fsbrn@brl.mil (Ferd S. Brundick)
  3. Newsgroups: comp.databases
  4. Subject: Re: Paradox bug/feature in query form? (3.5)
  5. Message-ID: <19532@smoke.brl.mil>
  6. Date: 8 Jan 93 15:13:11 GMT
  7. References: <1993Jan7.183802.12921@blaze.cs.jhu.edu>
  8. Sender: news@smoke.brl.mil
  9. Reply-To: fsbrn@brl.mil
  10. Organization: Army Research Laboratory
  11. Lines: 38
  12.  
  13. In article <1993Jan7.183802.12921@blaze.cs.jhu.edu>, mancini@circle.cs.jhu.edu (Todd A. Mancini) writes:
  14. |> 
  15. |> Here's something I noticed in PDOX35, but have not yet tested in PDOX40...
  16. |> 
  17. |>   When I use a variable name in a query form from PAL (by using the
  18. |> ~variablename) notation, if the variable contains any wildcards they are
  19. |> ignored.  Is this documented?
  20.  
  21. Yes, it is documented, or at least I remember seeing the solution in
  22. an example in the Query portion of the User's Guide.  Put the
  23. wildcards outside the variable like this:
  24.  
  25. LNAME = "M"
  26.  
  27. query
  28.  
  29.   cust | last_name      | first_name |
  30.        | check ~LNAME.. | check      |
  31.        |                |            |
  32.  
  33. endquery
  34.  
  35. DO_IT!
  36.  
  37. It is the same as the literal
  38.  
  39. cust | last_name | first_name |
  40.      | check M.. | check      |
  41.  
  42. In my application the user always wants the wildcards, so I didn't
  43. have to worry about allowing him to type them in.  My app is written
  44. in 3.5 and behaves the same under 4.0 Runtime in compatibility mode.
  45. I haven't tested it in 4.0 standard mode yet.
  46.  
  47.                                         dsw, fferd
  48.                                         Fred S. Brundick
  49.                                         USARL, APG, MD.
  50.                                         <fsbrn@brl.mil>
  51.