home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / database / 1119 < prev    next >
Encoding:
Internet Message Format  |  1992-09-15  |  1.5 KB

  1. Path: sparky!uunet!news.claremont.edu!ucivax!news.service.uci.edu!pamiri@uci.edu
  2. From: pamiri@uci.edu (Peter Amiri)
  3. Subject: recursion in 4D
  4. Nntp-Posting-Host: cam.oaa.uci.edu
  5. Message-ID: <2AB65727.6303@news.service.uci.edu>
  6. Newsgroups: comp.sys.mac.databases
  7. Organization: University of California, Irvine
  8. Lines: 30
  9. Date: 15 Sep 92 21:35:36 GMT
  10.  
  11. Does anyone know of the limitations of recursive procedure calls in 4D? is 
  12. there any? I am programming a MLM, where a distributor sponsurs another 
  13. distributor and so on and so on... When it comes to doing the calculations
  14. and/or printing of reports it would be nice to write a resursive procedure
  15. that steps down the tree and either calculates totals or prints the records.
  16. At most I will have to go six levels deep. Has anyone done this in 4D?
  17.  
  18. On a similar note, when doing the report for the above, I would like to 
  19. combine different layouts on the same report which should be pretty
  20. easy to do with PRINT LAYOUT. I am unsure as to how to trap for the header 
  21. and footer though. When do the in Header and in Footer flags get set. I imagin
  22. I would start with somthing like this:
  23.  
  24. print layout ([anyfile];"Header")
  25. ..
  26. `for each record
  27. print layout ([anyfile];"body") 
  28. ..
  29. print layout ([anyfile];"footer")
  30. form feed
  31.  
  32.  
  33. This above procedure will print a header on the first page and a footer on 
  34. the last page but nothing other than data lines on the rest of the pages. 
  35. How can I trap for headers and footers on the other pages?
  36.  
  37. Thanks for any info you can provide.
  38.  
  39. Peter Amiri
  40. University of Califronia, Irvine
  41.