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
/
TTVAR.INC
< prev
next >
Wrap
Text File
|
1979-12-31
|
2KB
|
59 lines
TYPE
str1 = STRING[1];
str3 = STRING[3];
str5 = STRING[5];
str11 = STRING[11];
str14 = STRING[14];
str20 = STRING[20];
str40 = STRING[40];
Str80 = STRING[80];
AnyStr = STRING[255];
(* character set type *)
CharSet = SET OF CHAR;
Animal_rec = RECORD
rec_no : INTEGER;
Ear_No : str5;
Name : str20;
Sex : str1;
Date_Born : str11; {eg 20 Aug 1986}
Date_died : str11;
Sire : str5; {holds Ear number of}
Dam : str5;
Comment_1 : str40; {Live weight at four weeks}
Comment_2 : str40;
Comment_3 : str40;
Date_Mated : str11;
Partner : str5;
END;
Months = array[1..12] of str3;
VAR
Ch : CHAR;
Month : Months;
yy,
ww,
dd,
i,DataF : INTEGER;
Q : text;
DatF : DataFile;
EarIndexFile,
NameIndexFile : IndexFile;
Animal : Animal_rec;
Animal_Table : ARRAY[1..6] OF Animal_rec;
List_Table : array[1..12] of Animal_Rec;
Date_Today : str14;
InfileName : str14;
Iday,Imonth,
Iyear : integer;
RR : integer;
procedure Display_Recs_Used;
begin
gotoxy(60,2);
write(UsedRecs(DatF): 5,' RECORDS IN USE');
end;