2009年10月13日 星期二
简体中文与繁体中文的转换函数
万一| 万一的 Delphi 博客 |13:54:00
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); end; var Form1: TF...
Override the TMaskEdit’s Internal "Invalid Input Value. Use Escape Key to Abandon Changes" Error in Delphi
About.com| About.com Delphi Programming |01:00:42
Delphi TIPS :: When developing database applications using Delphi, if you are using the EditMask property of a TField object to restrict the data that can be entered into a...
2009年10月12日 星期一
测试 TStreamWriter、TStreamReader
万一| 万一的 Delphi 博客 |20:05:00
TStreamWriter 和 TStringWriter 都是继承于抽象类: TTextWriter;TStreamReader 和 TStringReader 都是继承于抽象类: TTextReader.它们的功能相似, 不过 TStreamWriter、TStreamReader 又有了 "流" 的特性, 比较适合对字符串流的读写.unit Unit1; interface uses ...
Delphi 2010 never sleeps!
Pawel Glowacki| Pawel Glowacki |17:39:45
Man! I can’t remember when I was travelling so much. In the last two weeks I’ve been on the road with Mark Barringer - ER/Studio guru - and we were in 5 different cities. Right now I’m in the Hotel Antunovic in Zagreb where we ar...
测试字符串读取类: TStringReader
万一| 万一的 Delphi 博客 |17:04:00
TStringReader 比 TStringWriter 的方法少得多, 分别可按: 字符、行或全部读取;读取字符时得到的是字符编码, 全部或按行读取得到是字符串, 也可读取到字符数组.unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls,...
测试字符串写入类: TStringWriter
万一| 万一的 Delphi 博客 |15:31:00
以前没见过这个类, 它是在 TStringBuilder 的基础上实现的; 使用它可以方便地把各种数据类型写入字符串.unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(...
Understanding and (Not) Using the Goto Delphi Statement
About.com| About.com Delphi Programming |02:00:53
in TIPS :: var ??label : nastyJump; begin ?Some_Code_Here; nastyJump: ?Some_More_Code_Here; goto nastyJump; end; The Goto statement transfers program execution to the statement marked by the specified label. Read this again! Goto does not "as...
详测 Generics Collections: TObjectList、TObjectQueue、TObjectStack
万一| 万一的 Delphi 博客 |00:42:00
TObjectList<T>、TObjectQueue<T>、TObjectStack<T> 分别继承自:TList<T>、TQueue<T>、TStack<T>;它们是专门用于对象的列表, 都增加了一个 OwnsObjects 布尔属性, 决定对象会不会自动释放(这也通过 Create 的参数来决定)其他基本同它们的父类, 仅?..
2009年10月11日 星期日
详测 Generics Collections TDictionary(5): 多种 Create 手段
万一| 万一的 Delphi 博客 |22:38:00
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; Button2: TButton; Button3: TButton; Button4: TButton; ...
详测 Generics Collections TDictionary(4): OnKeyNotify、OnValueNotify
万一| 万一的 Delphi 博客 |18:29:00
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Generics.Collections; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); ...
详测 Generics Collections TDictionary(3): TPairEnumerator、TKeyEnumerator、TValueEnumerator、ExtractPair
万一| 万一的 Delphi 博客 |18:16:00
//这组功能没有多少实用价值 unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObjec...
详测 Generics Collections TDictionary(2): ContainsKey、ContainsValue、AddOrSetValue、TryGetValue
万一| 万一的 Delphi 博客 |17:13:00
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); end; var Form1: TF...
详测 Generics Collections TDictionary(1): Add、Items、Keys、Values、Remove
万一| 万一的 Delphi 博客 |16:44:00
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); end; var Form1: TF...
Win32 下光明驱动备份专家
DELPHI盒子| Delphi盒子 |16:10:00
您是否为重装系统前备份电脑中的驱动程序而烦恼,是否为每一个驱动而 不停的 “复制” “粘贴”而感到很无助,现在 光明驱动备份专家 可以尽可能的帮助你把所有的驱动程序备份起来。虽然谈不上完美, 请相信我,我会把它做得更好。
详测 Generics Collections TStack(1): Push、Pop、Peek - 其他功能同 TQueue
万一| 万一的 Delphi 博客 |15:44:00
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); end; var Form1: TF...





冀公网安备 13098202000212号