本文整理自网络,侵删。
procedure TForm1.Button1Click(Sender: TObject);var i: Integer;begin Label1.Caption := ''; for i := 1 to Length(Edit1.Text) do begin try Label1.Caption := Label1.Caption + SysUtils.IntToHex(Byte(Edit1.Text[i]),2) + ' '; except Beep; end; end;end;
相关阅读 >>
Delphi xp 之后, Delphi 动注册表不方便了...逼出来一个办法:
Delphi10.3构造一个json数据的第三种方法,并格式化输出
更多相关阅读请进入《Delphi》频道 >>