home *** CD-ROM | disk | FTP | other *** search
- unit HlthData;
-
- interface
- uses
- GS_dBase, GS_DB_FL;
-
- type
- HlthData_FL001 = Object(GS_dBase_FL_I) {F_CODE }
- constructor Init(LF, LR : pointer);
- end;
-
- HlthData_FL002 = Object(GS_dBase_FL_C) {L_NAME }
- constructor Init(LF, LR : pointer);
- end;
-
- HlthData_FL003 = Object(GS_dBase_FL_D) {M_DATE }
- constructor Init(LF, LR : pointer);
- end;
-
- HlthData_Objct = Object(GS_dBase_DB)
- F_CODE : HlthData_FL001;
- L_NAME : HlthData_FL002;
- M_DATE : HlthData_FL003;
- end;
-
- var
- HlthData_R : HlthData_Objct;
- HlthData_Exit : pointer;
-
- implementation
-
- type
- PtrRec = record
- ofs, seg : word;
- end;
-
- constructor HlthData_FL001.Init(LF, LR : pointer);
- begin
- OffSet := 1;
- Inc(PtrRec(LF).ofs,0);
- Inc(PtrRec(LR).ofs,1);
- GS_dBase_FL_I.Init(LF, LR);
- end;
-
- constructor HlthData_FL002.Init(LF, LR : pointer);
- begin
- OffSet := 6;
- Inc(PtrRec(LF).ofs,32);
- Inc(PtrRec(LR).ofs,6);
- GS_dBase_FL_C.Init(LF, LR);
- end;
-
- constructor HlthData_FL003.Init(LF, LR : pointer);
- begin
- OffSet := 26;
- Inc(PtrRec(LF).ofs,64);
- Inc(PtrRec(LR).ofs,26);
- GS_dBase_FL_D.Init(LF, LR);
- end;
-
- {$F+}
- procedure Exit_Proc;
- begin
- HlthData_R.Close;
- exitProc := HlthData_Exit;
- end;
-
- begin
- HlthData_Exit := exitProc;
- exitProc := @Exit_Proc;
- HlthData_R.Init('HlthData');
- with HlthData_R do
- begin
- F_CODE.Init(Fields, CurRecord);
- L_NAME.Init(Fields, CurRecord);
- M_DATE.Init(Fields, CurRecord);
- end;
- HlthData_R.Close;
- end.
-