论坛


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 的参数来决定)其他基本同它们的父类, 仅?..