摘要:
TStringReader 比 TStringWriter 的方法少得多, 分别可按: 字符、行或全部读取; 读取字符时得到的是字符编码, 全部或按行读取得到是字符串, 也可读取到字符数组.unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dia...
阅读全文
posted @ 2009-10-12 17:04
万一
阅读(5353)
推荐(0)
编辑
摘要:
以前没见过这个类, 它是在 TStringBuilder 的基础上实现的; 使用它可以方便地把各种数据类型写入字符串.unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(...
阅读全文
posted @ 2009-10-12 15:31
万一
阅读(2599)
推荐(0)
编辑
摘要:
TObjectList<T、TObjectQueue<T、TObjectStack<T 分别继承自:TList<T、TQueue<T、TStack<T;它们是专门用于对象的列表, 都增加了一个 OwnsObjects 布尔属性, 决定对象会不会自动释放(这也通过 Create 的参数来决定)其他基本同它们的父类, 仅给 TObjectList<...
阅读全文
posted @ 2009-10-12 00:42
万一
阅读(4488)
推荐(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
万一
阅读(4401)
推荐(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
万一
阅读(2634)
推荐(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
万一
阅读(3208)
推荐(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
万一
阅读(4261)
推荐(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
万一
阅读(5185)
推荐(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
万一
阅读(3970)
推荐(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
万一
阅读(2146)
推荐(0)
编辑