Hi
as u all probably notice Im a noob with Delphi
Is it possible to code a case like I did below If it is please correct my faults I made so that it would run
redSpan is a rich edit
edt1s is a edit
chelsea and arsenal are textfiles that I already declared
and ArsenalS and ChelseaS are the lines within the textfiles
I can also e-mail the program form to a willing helper ..
case (edt1s.text) of
'Chelsea' : Reset(chelsea);
while not Eof(chelsea) do
begin
Readln(chelsea, chelseaS);
redSpan1.Lines.Add(chelseaS);
end;
'Arsenal' : reset (arsenal);
while not Eof(arsenal) do
begin
Readln(arsenal, arsenalS);
redSpan1.Lines.Add(ArsenalS);
end;