home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jason Aller Floppy Collection
/
341.img
/
TCS161S.ZIP
/
SCROLLS.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1989-09-17
|
858b
|
56 lines
Unit Scrolls;
{$O+}
Interface
Uses Dos,Crt;
Procedure Scroll;
Implementation
Procedure Scroll;
Type Arr1=Array[1..100] of String[20];
Var
A,B,C,D,E:Integer;
Infile: Text;
equals:Arr1;
Reader:String[40];
Begin
A:=0;
Assign(Infile,'Scrolls.TCS');
Reset (Infile);
While Not Eof (Infile) do
Begin
a:=a+1;
Readln(Infile,Reader);
Equals[a]:=Reader;
End;
close (Infile);
Repeat
b:=Random(a);
until b<>0;
c:=0;
Repeat
e:=Random(16);
Until (e<>0) and (e<>16);
TextColor(e);
GotoXy(30,4);
Write(Equals[b]);
c:=Length(Equals[b]);
Delay(100);
For d:=1 to c do
Begin
Delay(50);
GotoXy(29+d,4);
Write(' ');
GotoXy(30+c-d,4);Write(' ');
End;
End;
Begin
end.