var
i,j,k:integer;
Tempstr:array[1..15] of string;
TempMid:string;
FT:boolean;
begin
for i:=1 to 15do
begin
Tempstr:=inttoHex(i,1);
end;
for j:=1 to high(Tempstr)do
begin
for k:=1 to length(memo.text)do
begin
if Tempstr[j]:=copy(memo.text,k,2) then
begin
TempMid:=TempMid+Tempstr[j];
end
else
begin
showmessage('有不能转换的字符(超出1..F)');
exit;
end;
end;
end;
if TempMid<>'' then
memo.text:=TempMid;