home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
MBUG
/
MBUG027.ARC
/
MAIN.INC
< prev
next >
Wrap
Text File
|
1979-12-31
|
2KB
|
59 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;
Writeln('S Sort. Sorts the file by Ear No. and cleans out deleted Animals.');
Writeln;
Writeln('The search routine used for ALL routines except LIST require the file to be');
Writeln('in the correct sorted order. If you feel some of the Ear Numbers are out of');
Writeln('order SORT the file. Animals that are DELETED have their Ear Number changed');
Writeln('to "CLEAN". They are not written to a sorted file.');
line(21);
GotoXY(1,22);
Write(' F = Family | S = Sort | L = List | U = Update | P = Pedigree | <ESC> =');
select(73,22,'QUIT', ['F','P','S','U','L',#27], Ch);
ClrScr;
line(1);
IF ch <> #27 THEN line(16);
CASE Ch OF
'U' : Update(Date_Today);
'S' : Sort_File;
'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,22,' ');
select(1,22,' Are you sure? | Y | N | ',['Y','N'],ch);
IF ch = 'Y' THEN ch := #27;
END;
UNTIL Ch = #27;
close(infile);
END;
ClrScr;
END.