home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!uunet.ca!canrem!dosgate!dosgate![tom.frazer@canrem.com]
- From: "tom frazer" <tom.frazer@canrem.com>
- Subject: dbase iv hierarchical poi
- Message-ID: <199322.4373.11945@dosgate>
- Reply-To: "tom frazer" <tom.frazer@canrem.com>
- Organization: Canada Remote Systems
- Distribution: comp
- Date: 22 Jan 93 01:37:41 EST
- Lines: 27
-
- DD> will need to start with a person and create a list of supervisors betwe
- DD> specified person and the "big boss."
-
- DD> Can I do this by simply storing a key or pointer to the supervisor reco
- DD> each person's record, then use that key or pointer to recursively retri
- DD> supervisor, then his/her supervisor, and so on? If this is possible, i
-
- Judging by your information the database will contain information
- on all employees, so why not just
-
- OPEN DATABASE
- FIND employee
- STORE fields to memvars (including supervisor1 and RECNO())
- FIND supervisor1
- STORE this employees supervisor to a memvar(supervisor2)
- FIND supervisor2
- STORE this employees supervisor to a memvar(supervisor3)
- continue till no further supervisors exist (big boss)
- EDIT, print report program or whatever...
-
- Tom Frazer tom.frazer@canrem.com canrem!tom.frazer
- RIME = ->CRS FIDO = 1:229/15
- ---
- * Qwkit 1.0 * SYSOP = Sent Your Spouse Obsene Pictures
- --
- Canada Remote Systems - Toronto, Ontario
- World's Largest PCBOARD System - 416-629-7000/629-7044
-