Наши проекты:
Журнал · Discuz!ML · Wiki · DRKB · Помощь проекту |
||
ПРАВИЛА | FAQ | Помощь | Поиск | Участники | Календарь | Избранное | RSS |
[3.15.179.121] |
|
Сообщ.
#1
,
|
|
|
Срочно нужна процедурка сабжевая.
Кинте кому нелень. |
Сообщ.
#2
,
|
|
|
procedure TForm1.Button1Click(Sender: TObject);
begin if (edit1.text='')or(edit1.text=extractfilename(f1.filename)) then exit; if messagedlg('Перевести '+f1.FileName+' ?',mtwarning,[mbyes,mbno],0)=idno then exit; assignfile(source,f1.FileName);reset(source); assignfile(ou,edit1.Text);rewrite(ou); repeat readln(source,buf); for i:=0 to length(buf) do case r1.ItemIndex of 0:case ord(buf[i]) of 128..175:buf[i]:=chr(ord(buf[i])+64); 224..255:buf[i]:=chr(ord(buf[i])+16);end; 1:case ord(buf[i]) of 192..239:buf[i]:=chr(ord(buf[i])-64); 240..255:buf[i]:=chr(ord(buf[i])-16);end; end; writeln(ou,buf); until eof(source); closefile(ou);closefile(source); f1.Refresh; end; где-то на это сайте я ее и видел:)) |