Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.02.18;
Скачать: CL | DM;

Вниз

Как мне применить следующий код к RichEdit1?   Найти похожие ветки 

 
HDD ©   (2002-02-02 01:20) [0]

Как мне применить следующий код к RichEdit1?
Const
Base64Table="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

function Base64Decode(cStr:string):string;
var ResStr:string;
DecStr:string;
RecodeLine : array [1..76] of byte;
f1,f2 : word;
l:integer;
begin
l :=length(cStr);
ResStr:="";
for f1:=1 to l do
if cStr[f1]="=" then RecodeLine[f1]:=0
else RecodeLine[f1]:=pos(cStr[f1],Base64Table)-1;
f1:=1;
while f1<length(cStr) do
begin
DecStr:=chr(byte(RecodeLine[f1] shl 2)+RecodeLine[f1+1] shr 4)+
chr(byte(RecodeLine[f1+1] shl 4)+RecodeLine[f1+2] shr 2)+
chr(byte(RecodeLine[f1+2] shl 6)+RecodeLine[f1+3]);
ResStr:=ResStr+DecStr;
inc(f1,4);
end;
Base64Decode:=ResStr;
end;


 
aus ©   (2002-02-02 07:41) [1]

Если это перекодировка символов, то в OnKeyPress
key := Base64Decode(key)

Так же и для всего текста.




Страницы: 1 вся ветка

Текущий архив: 2002.02.18;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.011 c
1-57048
Елена
2002-02-04 11:52
2002.02.18
Гориз. полоса прокрутки в ComboBox


1-57069
novomod
2002-01-31 14:24
2002.02.18
HELP. Алгоритм.


6-57155
Lana
2001-11-16 01:51
2002.02.18
SMS


1-57041
km
2002-02-01 14:39
2002.02.18
Помогите


3-56990
vopros
2002-01-23 13:57
2002.02.18
Индексы изнасиловали меня в конец...