摘要: varc: Char; {Char 类型的取值范围是: #0..#255, 用十六进制表示是: #$0..#$FF}begin{用十进制方式赋值:}c := #65;ShowMessage(c); {A}{用十六进制方式赋值:}c := #$41;ShowMessage(c); {A}{用 Chr ... 阅读全文
posted @ 2016-01-04 17:02 KunSun 阅读(368) 评论(0) 推荐(0) 编辑
摘要: function UniCode2GB(S : String):String;Var I: Integer;beginI := Length(S);while I >=4 do begintryResult :=WideChar(StrToInt('$'+S[I-3]+S[I-2]+S[I-1]+S... 阅读全文
posted @ 2016-01-04 16:59 KunSun 阅读(634) 评论(0) 推荐(0) 编辑
摘要: 一般一个16位(双字节)的数据,比如 FF1A(16进制)那么高位字节就是FF,低位是1A如果是32位的数据,比如3F68415B高位字(不是字节)是3F68低位字是415B右边是低位位,左边是高位;========================低高位指的是低位位置放置双字节中高位字节,高位位置放... 阅读全文
posted @ 2016-01-04 15:56 KunSun 阅读(5037) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-01-04 15:22 KunSun 阅读(1046) 评论(0) 推荐(0) 编辑
摘要: //Char 类型与其编码值的转换:varb: Byte;c: Char;beginb := Ord('A'); {返回: 65}b := Ord(#65); {返回: 65}b := Ord($41); {返回: 65}b := Ord(#$41); {返回: 65}b := Byte('A');... 阅读全文
posted @ 2016-01-04 15:05 KunSun 阅读(552) 评论(0) 推荐(0) 编辑
摘要: 一、delphi inttohex 整型到十六进制 inttohex from delphi help: Returns the hex representation of an integer. Unit SysUtils Category numeric formatting routines 阅读全文
posted @ 2016-01-04 15:04 KunSun 阅读(240) 评论(0) 推荐(0) 编辑
摘要: varint:integer;p:^integer;new(P);int:=24;p:=@int;dispose(P);^:指针的引用解析操作符;varpint:^integer;new(pint);showmessage(inttohex(integer(@pint),8));pint^:=$ff... 阅读全文
posted @ 2016-01-03 23:31 KunSun 阅读(845) 评论(0) 推荐(0) 编辑
摘要: 1、根据条件更改某一单元格的颜色[delphi]view plaincopyprocedureTMainFrm.First_DGDrawColumnCell(Sender:TObject;constRect:TRect;DataCol:Integer;Column:TColumn;State:TGr... 阅读全文
posted @ 2015-12-29 21:33 KunSun 阅读(972) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2015-12-17 10:31 KunSun 阅读(273) 评论(0) 推荐(0) 编辑
摘要: SQL Server 2005 Express版 用户 'sa' 登录失败。该用户与可信 SQL Server 连接无关联。提示错误:已成功与服务器建立连接 但是在登录过程中发生错误。 provider 共享内存提供程序 error 0 管道的另一端上无任何进程。解决方案:1、首先选中服务器(右键)... 阅读全文
posted @ 2015-12-16 15:38 KunSun 阅读(191) 评论(0) 推荐(0) 编辑