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