06 2010 档案

调用 VBScript 计算简单的四则混合运算数学题
摘要:function Calc(s: string): string;var vScript: Variant;begin vScript := CreateOleObject('ScriptControl'); vScript.Language := 'VBScript'; Result := vScript.Eval(s);end;//调用var s:string;begin s:=C... 阅读全文

posted @ 2010-06-25 22:54 思想。生活。网络 阅读(198) 评论(0) 推荐(0)

TStringList 区分空格 和 TAB ?
摘要:var st: TStrings;begin st := TStringList.Create; st.StrictDelimiter := True;//这个多少人用过? st.Delimiter := ' '; st.DelimitedText := '0 1 2';//用语言描述就是 [0][空格][1][TAB键][2] ShowMessage(st.Text); st.Fr... 阅读全文

posted @ 2010-06-20 21:44 思想。生活。网络 阅读(330) 评论(0) 推荐(0)

TEdit 控件的提示,就像 IE7 的地址输入栏一样
摘要:效果图: 阅读全文

posted @ 2010-06-20 00:05 思想。生活。网络 阅读(160) 评论(0) 推荐(0)

利用IdHTTP进行多线程下载
摘要:必须补充说明的是:这个例子是 delphi7 + indy 9.00.10 的,不保证其他版本 delphi/indy 例子能够使用。unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, StdCtrls, IdComponent, IdTCPConnection, IdTCPClient, IdHTTP, IdBaseComponent, IdAntiFreezeBase, IdAntiFreeze, IdTh 阅读全文

posted @ 2010-06-18 21:21 思想。生活。网络 阅读(3666) 评论(1) 推荐(0)

像操作系统一样新建文件夹
摘要:uses comobj, shlobj;function GetShellFolderFromPath(owner: IShellFolder; path: string): IShellFolder;var P: PWideChar; folder: IShellFolder; NewPIDL: PItemIDList; NumChars, Flags, HR: LongWord;be... 阅读全文

posted @ 2010-06-18 12:25 思想。生活。网络 阅读(410) 评论(0) 推荐(0)

hello world
摘要:const s = 'hello world';begin ShowMessage(s);end; 阅读全文

posted @ 2010-06-01 23:11 思想。生活。网络 阅读(109) 评论(0) 推荐(0)

导航

< 2025年6月 >
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 1 2 3 4 5
6 7 8 9 10 11 12

统计

点击右上角即可分享
微信分享提示