home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / 8929 < prev    next >
Encoding:
Text File  |  1993-01-08  |  2.0 KB  |  56 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!usc!wupost!monsanto.com!skcla.monsanto.com!jjfink
  3. From: jjfink@skcla.monsanto.com
  4. Subject: Re: Paradox bug/feature in query form? (3.5)
  5. Message-ID: <1993Jan8.084416.1@skcla.monsanto.com>
  6. Lines: 44
  7. Sender: news@tin.monsanto.com (USENET News System)
  8. Organization: Searle, Skokie, IL
  9. References: <1993Jan7.183802.12921@blaze.cs.jhu.edu>
  10. Date: Fri, 8 Jan 1993 08:44:16 GMT
  11.  
  12. In article <1993Jan7.183802.12921@blaze.cs.jhu.edu>, mancini@circle.cs.jhu.edu (Todd A. Mancini) writes:
  13. > Here's something I noticed in PDOX35, but have not yet tested in PDOX40...
  14. >   When I use a variable name in a query form from PAL (by using the
  15. > ~variablename) notation, if the variable contains any wildcards they are
  16. > ignored.  Is this documented?
  17. >... 
  18. >  LNAME = "M.."
  19. >  query
  20. >    cust | last_name    | first_name |
  21. >         | check ~LNAME | check      |
  22. >         |              |            |
  23. >  endquery
  24. >  DO_IT!
  25. > does NOT find these customers.  I have been able to get around this by using
  26. > the TYPEIN command, but this is not elegant.  Any hints?
  27. > (mancini@cs.jhu.edu)
  28.  
  29. That's not a bug, that's a feature.  It's documented, though poorly.
  30. The 'tilde variables' in the query forms can only be used for single-valued,
  31. non-patterned text.  I'd tried to put "123 OR 456 OR 789" in such a variable,
  32. and again, no dice. TYPEINs are the only way.
  33.  
  34. Now, what I'd really like is some capability to use string and math functions
  35. in a query!!!  For instance, I should be able to calculate age as the 
  36. integer of (current date - birth date)/365.25, but NOOOOOOO!
  37.  
  38. So far as I can tell, Paradox has not changed this for 4.0.  We can only hope
  39. PDX/Win will improve the query form.
  40.  
  41. Joel
  42.  
  43. -- 
  44. jjfink@skcla.monsanto.com
  45. ------------------------------------------------------------------------------
  46. "I want peace on earth, and goodwill towards man."
  47. "We don't do that kind of thing, we're the United States Government!"
  48.   -- from _Sneakers_
  49.