摘要: CompareText 比较两个字符串的大小,返回值为 -1 [ 当 a1<a2 时 ] 或 0 [ 当 a1=a2 时 ] 或 1 [当 a1>a2 时] function CompareText(const a1, a2: string): Integer; 比较时,不区分大小写; SameTe 阅读全文
posted @ 2016-08-18 14:27 狼码 阅读(580) 评论(0) 推荐(0) 编辑
摘要: 1.转换函数(Transfer Routines) Unit: System Chr 传回ASCII 码所对应的字元。function Chr(X: Byte): Char; 例如:Hex(十六进制) Chr($02) 代表 正文开始 ; Chr($03) 代表正文结束 ;Chr($20)代表空格; 阅读全文
posted @ 2016-08-17 10:29 狼码 阅读(511) 评论(0) 推荐(1) 编辑
摘要: Form.Free 释放Form占用的所有资源。Free后,Form指针不能再使用,除非对Form重新赋值。Form.Hide隐藏Form。通过调用form.Show显示Form.Close 关闭Form。并没有释放内存。关闭窗口的时候触发。实际的结果取决于OnCloseQuery和OnClose,... 阅读全文
posted @ 2015-01-14 14:12 狼码 阅读(482) 评论(0) 推荐(0) 编辑
摘要: 模式窗体:通过代码段try...finally中创建并维护。非模式窗体:从创建到销毁都需要代码来维护,防止内存未安全释放http://www.cnblogs.com/delphi7456/archive/2010/10/30/1865021.html 阅读全文
posted @ 2015-01-14 09:55 狼码 阅读(205) 评论(0) 推荐(0) 编辑
摘要: const Url = 'http://del.cnblogs.com';procedure Tidhttptestform.Button1Click(Sender: TObject);var stream:TStringStream; idHttpObj:TIdHTTP;begin stre... 阅读全文
posted @ 2014-12-19 11:42 狼码 阅读(363) 评论(0) 推荐(0) 编辑
摘要: http://www.blogjava.net/i369/articles/149448.html 阅读全文
posted @ 2014-12-09 10:39 狼码 阅读(105) 评论(0) 推荐(0) 编辑