摘要:
TStringReader 比 TStringWriter 的方法少得多, 分别可按: 字符、行或全部读取; 读取字符时得到的是字符编码, 全部或按行读取得到是字符串, 也可读取到字符数组.unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dia...
阅读全文
posted @ 2009-10-12 17:04
万一
阅读(5352)
推荐(0)
编辑
摘要:
以前没见过这个类, 它是在 TStringBuilder 的基础上实现的; 使用它可以方便地把各种数据类型写入字符串.unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(...
阅读全文
posted @ 2009-10-12 15:31
万一
阅读(2598)
推荐(0)
编辑
摘要:
TObjectList<T、TObjectQueue<T、TObjectStack<T 分别继承自:TList<T、TQueue<T、TStack<T;它们是专门用于对象的列表, 都增加了一个 OwnsObjects 布尔属性, 决定对象会不会自动释放(这也通过 Create 的参数来决定)其他基本同它们的父类, 仅给 TObjectList<...
阅读全文
posted @ 2009-10-12 00:42
万一
阅读(4479)
推荐(0)
编辑
摘要:
unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Button1: TButton; Button2: TButton; Button3: TButton...
阅读全文
posted @ 2009-10-11 22:38
万一
阅读(4397)
推荐(0)
编辑
摘要:
unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Generics.Collections;type TForm1 = class(TForm) Button1: TButton; procedure Bu...
阅读全文
posted @ 2009-10-11 18:29
万一
阅读(2632)
推荐(0)
编辑
摘要:
//这组功能没有多少实用价值unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Button1: TButton; procedure Button1Cli...
阅读全文
posted @ 2009-10-11 18:16
万一
阅读(3206)
推荐(0)
编辑
摘要:
unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TOb...
阅读全文
posted @ 2009-10-11 17:13
万一
阅读(4256)
推荐(0)
编辑
摘要:
unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TOb...
阅读全文
posted @ 2009-10-11 16:44
万一
阅读(5157)
推荐(0)
编辑
摘要:
unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TOb...
阅读全文
posted @ 2009-10-11 15:44
万一
阅读(3969)
推荐(0)
编辑
摘要:
unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Generics.Collections;type TForm1 = class(TForm) Button1: TButton; procedure Bu...
阅读全文
posted @ 2009-10-11 14:47
万一
阅读(2144)
推荐(0)
编辑