摘要:
一、有必要了解 INI 文件的结构:;注释 [小节名] 关键字=值...INI文件允许有多个小节,每个小节又允许有多个关键字,“=”后面是该关键字的值。 值的类型有三种:字符串、整型数值和布尔值。其中字符串存贮在INI文件中时没有引号,布尔真值用1表示,布尔假值用0表示。注释以分号“;”开头。二、定义 1、在Interface的Uses节增加IniFiles;2、在Var变量定义部分增加一行:myinifile:Tinifile; 然后,就可以对变量myinifile进行创建、打开、读取、写入等操作了。 三、打开INI文件myinifile:=Tinifile.create('PRog 阅读全文
posted @ 2011-01-03 19:46
delphi中间件
阅读(210)
评论(0)
推荐(0)
摘要:
unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Button1: TButton; Button2: TButton; procedure FormCreate(Sender: TObject); procedure FormDestroy(Sender: TObject); procedure Button1Click... 阅读全文
posted @ 2011-01-03 19:38
delphi中间件
阅读(236)
评论(0)
推荐(0)
摘要:
unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Button1: TButton; Button2: TButton; procedure Button1Click(Sender: TObject); procedure FormCreate(Sender: TObject); procedure FormDestroy(Sender: TObject); 阅读全文
posted @ 2011-01-03 19:26
delphi中间件
阅读(193)
评论(0)
推荐(0)

浙公网安备 33010602011771号