X xinyang Unregistered / Unconfirmed GUEST, unregistred user! 2006-07-09 #1 InMsgSTR:='1E1F';<br>如何转换成 InMsgInt=(7711);<br>有函数么如 10进制转换成16进制 IntToHex();?<br>谢谢。
B blyb Unregistered / Unconfirmed GUEST, unregistred user! 2006-07-09 #2 最简单的办法:<br>showmessage(IntToStr(StrToInt('$'+'1E1F')));
T tonmy Unregistered / Unconfirmed GUEST, unregistred user! 2006-07-09 #3 StrToInt()<br>StrToIntDef()<br>如:<br>StrToInt('$'+InMsgSTR);<br>StrToIntDef('$'+InMsgSTR, 0);