procedure TForm1.Button4Click(Sender: TObject);
begin
close;
Hide;
end;procedure TForm1.FormCreate(Sender: TObject);
type
jihe1=set of 1..9;
jihe2=set of 6..16;
jiaoji=set of 1..20;
var
ji1:jihe1;
ji2:jihe2;
kongji:jiaoji;
m,n,h:string;
i,j:integer;
begin
m:='['; j:=0;
for i := 0 to 20 do
if i in ji1 then
if j := 0 then//此处 出现编译错误 delphi 提示如下:
{//[Error] U_jihe.pas(59): Type of expression must be BOOLEAN
///[Fatal Error] P_jihe.dpr(5): Could not compile used unit 'U_jihe.pas'}
begin
m:=m+trim(inttostr(i)); j:=j+1;
end
else begin
m:=m+','+trim(inttostr(i)); j:=j+1;
end;
m:=m+']';
edit1.text:=m;
{n:='[';
j:=0;
for i:=1 to 20 do
if i in ji2 then
if j:=0 then
begin
n:=n+trim(inttostr(i));
j:=j+1;
end
else begin
n:=n+','+trim(inttostr(i));
j:=j+1;
end;
n:=n+']';
edit2.text:=n;}
end;procedure TForm1.Button2Click(Sender: TObject);
begin
//edit3.text:=h;
end;procedure TForm1.Button1Click(Sender: TObject);
begin
//edit3.text:=h;
end;procedure TForm1.Button3Click(Sender: TObject);
begin
//edit3.text:=h;
end;end.
请问,问题在哪?
begin
close;
Hide;
end;procedure TForm1.FormCreate(Sender: TObject);
type
jihe1=set of 1..9;
jihe2=set of 6..16;
jiaoji=set of 1..20;
var
ji1:jihe1;
ji2:jihe2;
kongji:jiaoji;
m,n,h:string;
i,j:integer;
begin
m:='['; j:=0;
for i := 0 to 20 do
if i in ji1 then
if j := 0 then//此处 出现编译错误 delphi 提示如下:
{//[Error] U_jihe.pas(59): Type of expression must be BOOLEAN
///[Fatal Error] P_jihe.dpr(5): Could not compile used unit 'U_jihe.pas'}
begin
m:=m+trim(inttostr(i)); j:=j+1;
end
else begin
m:=m+','+trim(inttostr(i)); j:=j+1;
end;
m:=m+']';
edit1.text:=m;
{n:='[';
j:=0;
for i:=1 to 20 do
if i in ji2 then
if j:=0 then
begin
n:=n+trim(inttostr(i));
j:=j+1;
end
else begin
n:=n+','+trim(inttostr(i));
j:=j+1;
end;
n:=n+']';
edit2.text:=n;}
end;procedure TForm1.Button2Click(Sender: TObject);
begin
//edit3.text:=h;
end;procedure TForm1.Button1Click(Sender: TObject);
begin
//edit3.text:=h;
end;procedure TForm1.Button3Click(Sender: TObject);
begin
//edit3.text:=h;
end;end.
请问,问题在哪?
解决方案 »
- 用delphi能开发火狐的工具栏么?
- 高分翻译程序(VB->DELPHI)
- 100分求一用b/s连接的简单例子,我想用delphi6做行吗,用什么控件做就够了呢?
- 调查.大家都用什么建模工具?
- 问如何在程序中关闭一个运行着的ms_dos外部程序?
- 急死了,别说给分,给钱都行!!!
- 怎样建立自己的坐标系??
- ★我对CSDN和所有中国程序工人的一点点心声★
- 不知道各位朋友有否delphi6 中采用websnap开发聊天室的经验?
- 表怎样实现查找
- 类设计问题(静态方法、类方法、public与virtual/dynamic等,问题多多,555~~~),问题尖锐~~~
- 安装了Microsoft Speech SDK 5.1,英文和中文语音库,在delphi 的控制板ActiveX中如何增加了Spvoice类,
{//[Error] U_jihe.pas(59): Type of expression must be BOOLEAN
///[Fatal Error] P_jihe.dpr(5): Could not compile used unit 'U_jihe.pas'}
if j := 0 to 20 then
...