home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1999 September
/
Chip_1999-09_cd.bin
/
ctenari
/
Trejbal
/
TRELL.PAK
/
SOURCE
/
ERSD.EXE
/
BAMBUS.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1998-12-20
|
1KB
|
90 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,'bambus');
sfs:=fsearch('C:\trell\convert.dll',GetEnv('path'));
if not(sfs='') then
begin
reset(aa);
rewrite(bb);
j:=1;
while not(eof(aa)) do
begin
readln(aa,rad);
if ord(rad[0])>74 then
begin
kus:='';
for i:=25 to 31 do kus:=kus+rad[i];
if kus=' SAZBA ' then
begin
j:=2;
writeln(bb,rad);
end;
end;
if j=1 then writeln(bb,rad);
if j=2 then
begin
for k:=1 to 5 do
begin
readln(aa,radk);
readln(aa,rad);
kus:='';
for i:=55 to 74 do kus:=kus+rad[i];
kus:=bezmez(kus);
if not((kus='0,00')or(kus='0.00')) then
begin
writeln(bb,radk);
writeln(bb,rad);
end;
end;
j:=1;
end;
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.