home *** CD-ROM | disk | FTP | other *** search
- Unit WritBox;
-
-
- INTERFACE
-
- Procedure WriteBox(VAR Boxx; NumberOfElements : Integer;
- StartRow, StartCol : Byte);
-
-
-
- IMPLEMENTATION
- Uses Crt;
-
- {$I MICKEY11.INC}
-
-
- Procedure WriteBox(VAR Boxx; NumberOfElements : Integer;
- StartRow, StartCol : Byte);
- type
- StrArray = array [1..MAX_ARRAY_SIZE] of StringVar;
-
- var
- CurrRow, CurrCol : Byte;
- Indx : Integer;
- Aline : StringVar;
-
- Begin {WriteBox}
- CurrRow := StartRow;
- CurrCol := StartCol;
- Indx := 1;
- While (Indx <= NumberOfElements) do
- begin
- GotoXY(CurrCol,CurrRow);
- Aline := StrArray(Boxx)[Indx];
- Write(Aline);
- Inc(CurrRow);
- Inc(Indx);
- end;
- End; { WriteBox }
-
- Begin
- End.