home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug027.arc
/
VARIABLE.INC
< prev
Wrap
Text File
|
1979-12-31
|
2KB
|
58 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 : INTEGER;
Q : TEXT;
infile : FILE OF Animal_rec;
Animal : Animal_rec;
Animal_Table : ARRAY[1..6] OF Animal_rec;
List_Table : ARRAY[1..12] OF Animal_Rec;
found : BOOLEAN;
Date_Today : str14;
InfileName : str14;
Iday,Imonth,
Iyear : INTEGER;
procedure Display_Recs_Used;
begin
gotoxy(60,2);
Write(filesize(infile): 5,' RECORDS IN USE');
end;