procedure TForm1.Button1Click(Sender: TObject);
var
s, s1: String;
I: iNTEGER;
begin
s := 'B4F3B8BBCECCC2DBCCB3';
S1 := '';
for i := 0 to length(s) div 2 - 1 do
begin
S1 := S1 + Chr(StrToInt('$' + Copy(S, i * 2 + 1, 2)));
Memo1.Lines.Add(Copy(S, i * 2 + 1, 2));
end;
ShowMessage(s1);
end;
procedure TForm1.Button2Click(Sender: TObject);
var
User: string;
i, j: Integer;
begin
User := '大富翁论坛';
for i := 0 to Length(User) - 1 do
begin
j := ord((pchar(user) + i)^);
Memo1.Lines.Add(IntToHex(j, 2));
end;
end;