送分100分:STRTOINT的用法 问题有两个:1、STRTOINT 转变后的值可以直接赋值给BYTE/WORD/LONGINT型变量吗。2、有没有直接将字符转变成byte word longint这三种类型的函数。3、有没有直接将byte word longint这三种类型变量直接转变成对应字符串的函数。谢谢大家。菜鸟,急用。勿笑。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 想得到无符号?strtoint64int64tostr 自己写几个overload的就行啦,根值范围返回不同的类型 strtoint64int64tostrvarI: Int64;j:integer;Str, Str2: string;beginStr := '1700B7EA7D';if length(str)>0 thenfor j:=1 to length(str) dobeginif (str[j]>64) and (str[j]>71) theni:=i+ord(str[j])-54;if (str[j]>47) and (str[j]>59) theni:=i+ord(str[j])-48;i shl 4;end;i shr 4;for j:=0 to 9 dobeginstr2:=chr(48+(i mod 10))+str2;i:=i div 10;end;Showmessage(Str2);end;8位有符号 shortint 8位无符号 byte 16位有符号 smallint 16位无符号 word 32位有符号 integer,longint 32位无符号 cardinal,longword 64位有符号 int64 其他几个问题呢?DELPHI论坛版块人气真的不旺呀。 1. 可以的。2. StrToInt StrToInt643. IntToStr Int64ToStr 怎么插入日期时间(以浮点数的形式)Access 散完走人 举个Dll返回值的例子? 基于Delphi的“八皇后”问题动态实现 100分求磁性窗体(连动窗体)源码! DELPHI如何使用ASP.NET的WebService返回的DataSet 怎么样读出用户选择的treeview上的节点的值并且对它做出判断,并使右边的panel上面的控件变化 那里有甲骨文下载? 在delphi中用什么样的函数可以将十六进制数转换成十进制? WordApplication 的几个问题 多表关联的问题 求助:关于Api劫持挂链
strtoint64
int64tostr
int64tostr
varI: Int64;j:integer;Str, Str2: string;beginStr := '1700B7EA7D';if length(str)>0 thenfor j:=1 to length(str) dobeginif (str[j]>64) and (str[j]>71) theni:=i+ord(str[j])-54;if (str[j]>47) and (str[j]>59) theni:=i+ord(str[j])-48;i shl 4;end;i shr 4;for j:=0 to 9 dobeginstr2:=chr(48+(i mod 10))+str2;i:=i div 10;end;Showmessage(Str2);end;
8位有符号 shortint
8位无符号 byte
16位有符号 smallint
16位无符号 word
32位有符号 integer,longint
32位无符号 cardinal,longword
64位有符号 int64
2. StrToInt StrToInt64
3. IntToStr Int64ToStr