我想给status赋一个初值;我是这样写的:
status:integer;
status:=01;
可系统总说我重复设置,该怎样作呢?
status:integer;
status:=01;
可系统总说我重复设置,该怎样作呢?
解决方案 »
- 报文问题
- Delphi5.0+SQL2000 比较辣手的问题--高手进近!!
- 碰到一个有关windows操作系统的奇怪问题,有经验的请进来一看。
- Tadoquery问题
- 问个有关DBCheckBox的问题
- 急求解决动态EDIT值的问题
- 用BDE链接Sybase数据库的问题!
- chechy(我爱洁洁)wolfAone(黑色的狼(WOLF))virtualmfc(scale)请进来拿分,上午的问题还有分没给呢!
- 请问如何得到当前活动IE窗口地址栏中的地址以及页面的标题
- 请问哪里有OutlookBar控件下载?我下了一个Dream Outbar是要注册的,现在不行了。
- 谁能用Delphi 写出获取网关地址的程序!(高手请进)
- TeeChart pro 6.0安装后的程序编译错误
status:integer;
status:=1;
得到提示:
[Error] shengpi.pas(35): Identifier redeclared: 'status'
procedure TForm1.Button1Click(Sender: TObject);
var
status:Integer;
begin
status:=1;
end;如果你那还不行的话,换一个变量名
unit Unit1;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;type
TForm1 = class(TForm)
Button1: TButton;
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;
aa:Integer =1; //在这定义
implementation{$R *.dfm}end.
unit Unit1;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;type
TForm1 = class(TForm)
Button1: TButton;
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;
aa:integer;
const
aa=1; //在这定义implementation{$R *.dfm}end.
这样你再试试看?
status:=1; 这两行你在程序中也是紧挨着的么?是不是都写到var下了。