[UserPassWord]
PassWord=字符串怎么把这个关键字对应的字符串读出来?
PassWord=字符串怎么把这个关键字对应的字符串读出来?
解决方案 »
- 最近要修改一个程序,问一个属性问题?
- 兄弟们高手请进,高难度问题。高手高手高高手........????????????????????????????????????
- 想在MDI窗体程序中实现MSN消息通知提示框,只用AnimateWindow就想实现??做梦~!
- 如何使DBGrid中显示Boolean型字段时 显示'是'或'否'?
- 怎样让控件的个数自加??
- 一个操作Access表的SQL语句问题
- 怎么'SELECT * FROM 文章情况 ORDER BY 文章编号 AND 作者编号'不听我的话了?没实现文章编号(第一条件)和作者编号(第二条件)按顺序
- 控制ScrollBox的滚动条,设定滚动条的位置,滚动条改变但ScrollBox的当前位置没改变?
- delphi数据库查询超时
- 关于Delphi程序的大小,又来送分。。。
- delphi 中的匹配问题,希望大家帮忙?
- 怎样查找自己发过的帖?能不能做个链接,这样方便点。
很简单的
begin
str:=WriteString('userpassword','password','')
end;
QQ群:45139318正在招管理员,http://topic.csdn.net/u/20070819/20/88faa044-1e4f-41f3-a895-633a967f7a19.html
有意进本群与大家共同学习者也请加入!
interfaceuses
Windows,Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, inifiles, StdCtrls, ExtCtrls;type
TForm1=class(TForm)
Edit1:TEdit;
CheckBox1:TCheckBox;
Edit2:TEdit;
Label1:TLabel;
Label2:TLabel;
Timer1:TTimer;
Label3:TLabel;
procedureFormCreate(Sender:TObject);
procedureFormDestroy(Sender:TObject);
procedureTimer1Timer(Sender:TObject);private
{Privatedeclarations}
public
{Publicdeclarations}
end;var
Form1:TForm1;implementation
var
myinifile :TInifile;
?
{$R*.DFM}procedureTForm1.FormCreate(Sender:TObject);
var
filename:string;
begin
filename:=ExtractFilePath(paramstr(0))+'myini.ini';
myinifile :=TInifile.Create(filename);
edit1.Text:=myinifile.readstring ('程序参数','用户名称','缺省的用户名称');
edit2.text:=inttostr(myinifile.readinteger('程序参数','已运行时间',0));
checkbox1.Checked:=myinifile.readbool ('程序参数','是否正式用户',False);
end;procedureTForm1.FormDestroy(Sender:TObject);
begin
myinifile.writestring('程序参数','用户名称',edit1.Text);
myinifile.writeinteger('程序参数','已运行时间',strtoint(edit2.text));
myinifile.writebool('程序参数','是否正式用户',checkbox1.Checked);
myinifile.Destroy;
end;