请大家帮忙看一下,我才学delohi
procedure TFrmMain.Button18Click(Sender: TObject);
var
a: string;
begin
if button18.Caption='off' then
a:='00';
button18.Caption:='on'
else
a:='01';
button18.Caption=:'off';
end;
[Error] main.pas(2125): 'END' expected but 'ELSE' found
procedure TFrmMain.Button18Click(Sender: TObject);
var
a: string;
begin
if button18.Caption='off' then
a:='00';
button18.Caption:='on'
else
a:='01';
button18.Caption=:'off';
end;
[Error] main.pas(2125): 'END' expected but 'ELSE' found
解决方案 »
- 各位老大,请帮帮忙,关于PC连接USB控制的问题!!!
- update更新语句!!!!不知道怎么写!
- 欢迎大家来我的网站坐坐
- 我用activeform技术开发了一个人事系统,用的是socket通讯协议,其中一个表有3000条数据,在客户端下载时一定要用每次下载50条才可以,否
- 有沒有辦法屏蔽掉windows中剪切板功能???????
- 各位帮帮忙~~谢谢~
- 问:Numeric 类型和String 类型的互换。请朋友们进来帮帮忙。(在线等待)
- IE浏览器文件-属性是如何实现的?
- 在IE浏览网站时,怎样才能保存出现的Flash动画 .swf 文件?
- 如何禁止用户修改系统时间?
- panel 打印
- dbgrideh问题
procedure TFrmMain.Button18Click(Sender: TObject);
var
a: string;
begin
if button18.Caption='off' then
a:='00';
button18.Caption:='on'
else
a:='01';
button18.Caption=:'off';
end;//////少了一个END
end
var
a: string;
begin
if button18.Caption='off' then begin
a:='00';
button18.Caption:='on'
end else begin
a:='01';
button18.Caption=:'off';
end;
begin
a:='00';
button18.Caption:='on';
end else
begin
a:='01';
button18.Caption=:'off';
end;
procedure TFrmMain.Button18Click(Sender: TObject);
var
a: string;
begin
if button18.Caption='off' then
begin
a:='00';
button18.Caption:='on'
end
else
begin
a:='01';
button18.Caption=:'off';
end;////// 上面还是少了东西
end建议安装CNpack 这样在delphi里面看代码 结构比较清晰