inttohex from delphi help: Returns the hex representation of an integer. Unit SysUtils Category numeric formatting routines Delphi syntax: function IntToHex(Value: Integer; Digits: Integer): string; overload; C++ syntax: extern PACKAGE AnsiString __fastcall IntToHex(int Value, int Digits); Description IntToHex converts a number into a string containing the number's hexadecimal (base 16) representation. Value is the number to convert. Digits indicates the minimum number of hexadecimal digits to return. 功能说明:该函数用于将“十进制”转换成“十进制”。该函数有二个参数。第一个参数为要转换的十进制数据,第二个参数是指定使用多少位来显示十六进制数据。 showmessage(IntTostr(StrToint( '$ '+edit1.text))); |