Delhpi的帮助中
Unit
SysUtils
Category
numeric formatting routines
function IntToHex(Value: Integer
Digits: Integer): string;
function IntToHex(Value: Int64
Digits: Integer): string
overload;
example fir it
procedure TForm1.Button1Click(Sender: TObject);
begin
Edit2.Text := IntToHex(StrToInt(Edit1.Text), 6);
end;