home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug027.arc
/
TTMAIN.INC
< prev
next >
Wrap
Text File
|
1979-12-31
|
2KB
|
54 lines
(* Main program *)
BEGIN
start(Date_Today);
if ch <> 'N' then begin
REPEAT
Clrscr;
Line(1);
dis(1,2,' Database. M A I N M E N U ');
dis(1,2,infilename);
Display_Recs_Used;
gotoxy(1,4);
writeln('U Update. Add new Animal data. ');
writeln(' Edit previous entered data.');
writeln(' Find an Animal by Ear No. or Name.');
writeln;
writeln('L List. Lists all the Animal to screen or printer.');
writeln;
writeln('F Family. Lists all the off spring of either a sire or dam.');
writeln;
writeln('P Pedigree. Displays a pedigree of the Animal for 4 generations.');
writeln;
line(16);
gotoxy(1,17);
write(' F = Family | L = List | U = Update | P = Pedigree | <ESC> =');
select(73,17,'QUIT', ['F','P','U','L',#27], Ch);
clrscr;
line(1);
if ch <> #27 then line(16);
CASE Ch OF
'U' : Update(Date_Today);
'F' : Family_Display(Date_Today);
'L' : List(Date_Today);
'P' : Pedigree(Date_Today);
END;
IF Ch <> #27 THEN
BEGIN
ClearFrame;
END
ELSE
BEGIN
dis(1,17,' ');
select(1,17,' Are you sure? | Y | N | ',['Y','N'],ch);
IF ch = 'Y'
THEN ch := #27;
END;
UNTIL Ch = #27;
CloseFile(DatF);
CloseIndex(EarIndexFile);
CloseIndex(NameIndexFile);
END;
ClrScr;
END.