home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / database / 998 < prev    next >
Encoding:
Text File  |  1992-08-18  |  1.4 KB  |  37 lines

  1. Newsgroups: comp.sys.mac.databases
  2. Path: sparky!uunet!wupost!darwin.sura.net!mips!sdd.hp.com!news.cs.indiana.edu!umn.edu!mmm.serc.3m.com!pejacoby
  3. From: pejacoby@mmm.serc.3m.com (Paul E. Jacoby)
  4. Subject: Hiding empty DATE fields in 4D?
  5. Message-ID: <1992Aug18.140327.3507@mmm.serc.3m.com>
  6. Organization: 3M Company
  7. Date: Tue, 18 Aug 92 14:03:27 GMT
  8. Lines: 27
  9.  
  10. (I'll post this here too for wider distribution)
  11.  
  12. Does anyone have a good way to 'hide' empty DATE fields when printing a
  13. layout?  I have a number of date fields in a layout, any number of which
  14. may not yet have data entered in them.  4D is happy to provide
  15. "00/00/00" as a default value, but I don't want this value to show in
  16. the printout!
  17.  
  18. I have played with SET COLOR( ) with no success at this point. This code
  19. _doesn't_ work:
  20.  
  21.   If (Before & isprinting)
  22.      If ([traveler]datein=!00/00/00!) ` date is blank
  23.         SET COLOR(datein;0)  ` hide blank date fields
  24.      End if 
  25.   End if
  26.  
  27. Aside from not working, this approach is _slow_ as the Before phase
  28. executes for EVERY record being printed.  Yuck.
  29.  
  30. * If I have to, I'll make the fields ALPHA instead of date, but I'd
  31.   prefer to NOT make this change.
  32. -- 
  33. | Paul E. Jacoby, Consultant  | pejacoby@mmm.com      CIS:70404,2507 |
  34. | David Mitchell & Associates |                                      |
  35. | 3M Center, Bldg 235-3F-27   |--------------------------------------|
  36. | Maplewood, MN   55144-1000  | (612) 737-3211 [w]      731-6392 [h] |
  37.