home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1999 September
/
Chip_1999-09_cd.bin
/
ctenari
/
Trejbal
/
TRELL.PAK
/
SOURCE
/
ERSD.EXE
/
TRAMBUS.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1999-01-20
|
993b
|
74 lines
uses dos,crt,slova,matika;
var i,j,par,k,l,m,n,o,coko : integer;
radk,rad,kus,sfs,para,parb : string;
aa,bb,cc,ee,ff,gg:text;
znak:char;
begin
rad:='a.dbf';
assign(aa,'C:\trell\convert.dll');
assign(bb,'trambus');
sfs:=fsearch('C:\trell\convert.dll',GetEnv('path'));
if not(sfs='') then
begin
reset(aa);
rewrite(bb);
j:=0;
while not(eof(aa)) do
begin
readln(aa,rad);
k:=0;
if ord(rad[0])>1 then
begin
if (ord(rad[1])=196) or (rad[1]='-') then j:=j+1;
end;
if j=4 then
begin
if ord(rad[0])>43 then
begin
kus:='';
for i:=27 to 44 do kus:=kus+rad[i];
k:= najdi(' 0,00 K',kus,'0');
if k=0 then k:= najdi(' 0.00 K',kus,'0');
end;
end;
if k=0 then writeln(bb,rad);
end;
close(bb);
close(aa);
reset(bb);
rewrite(aa);
while not(eof(bb)) do
begin
readln(bb,rad);
writeln(aa,rad);
end;
close(bb);
close(aa);
erase(bb);
end; { konec dll }
end.