procedure TForm1.FormCreate(Sender: TObject);
beginmyini:=tinifile.Create('.\my.ini');
webbrowser1.Navigate(myini.ReadString('flash','路径','') );
timer1.Interval :=(myini.ReadInteger('time','hh','');
//timer1.Interval :=6000;[Error] Unit1.pas(47): Incompatible types: 'Integer' and 'String'
beginmyini:=tinifile.Create('.\my.ini');
webbrowser1.Navigate(myini.ReadString('flash','路径','') );
timer1.Interval :=(myini.ReadInteger('time','hh','');
//timer1.Interval :=6000;[Error] Unit1.pas(47): Incompatible types: 'Integer' and 'String'
解决方案 »
- 请问:如何利用google Finance或者yahoo Finance 获取汇率
- 关于TList.Sort的问题
- 欢迎加入ModeMaker的QQ群,群号:11227732
- 急啊!!!!!!!!!!!!!!!!安装程序制作问题!
- QuickReport如何显示两个ADOQuery中的数据
- 有没有高手用fastreport打印过A1的纸张?教教偶!
- 请教哪里有apdcomport控件下载?
- (100分)OleContainer与Word的问题!(参与者都有分,答对每人100分)
- 请问各位大虾怎样动态改变报表的每列的宽度呢?
- 如何通过编程从摄像头取静态图片?
- delphi 2007真的很不错
- TForm的OnActivate事件的困惑
webbrowser1.Navigate(myini.ReadString('flash','路径','') );
timer1.Interval :=myini.ReadInteger('time','时间',0);我这样写.它又对了。搞不清楚是什么原因.请高手解答.谢谢
myini.ReadInteger( 'time ', '时间',0),这个没有相应的值的时候就取这个默认值0,所以是正确的
而timer1.Interval :=(myini.ReadInteger( 'time ', 'hh ', ' '),这个没有相应的值的时候取的默认值是'',所以错误。所说的相应值是指,ini文件中time(section),时间(ident)对应的值帮助文件:
function ReadInteger(const Section, Ident: String; Default: Longint): Longint;DescriptionCall ReadInteger to retrieve an integer value from a specified data value associated with a key.Section is a string that identifies the key from which to retrieve a data value. Ident is a string that identifies the name of the data value to return. Default is an integer value to use if there is no key corresponding to Section or no data value corresponding to Ident.Note: This function overrides the ReadInteger function of TRegistry, from which TRegIniFile is derived. To call the ReadInteger function of TRegistry instead of this function, cast the call to ReadInteger as TRegistry.
procedure TForm1.FormCreate(Sender: TObject);
begin
progressbar1.Min :=0 ;
progressbar1.Max :=100;
for i:= 1 to 100 do
begin
progressbar1.Position :=i;为什么这里滚动条不会出现滚动效果,按下F9之后,滚动条直接显示到100 呢.
ProgressBar1.Position:=0;
progressbar1.Max:=100;
for i:= 1 to 100 do
begin
ProgressBar1.StepBy(1);
end;ProgressBar1.Position:=0;