Thread View: comp.sys.mac.databases
1 messages
1 total messages
Started by Peter Amiri
Tue, 15 Sep 1992 21:35
recursion in 4D
Author: Peter Amiri
Date: Tue, 15 Sep 1992 21:35
Date: Tue, 15 Sep 1992 21:35
30 lines
1601 bytes
1601 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads