请问delphi中procedure应该如何使用,下面有一段程序请问错误在哪里,谢谢各位

cxyqnl 2012-05-17 10:53:22
下面有一段程序:procedure TfrmCreep.FormCreate(Sender: TObject);
var
I:integer;
begin
Steel_type:='普通钢材';
for I:=1 to frmCreep.ComponentCount do
begin
if frmCreep.Components[I-1] is TComboBox then
(frmCreep.Components[I-1] as TComboBox).Text:=
(frmCreep.Components[I-1] as TComboBox).Items[0]
end;
RadioButton1Click(Self);
DbGrid1.Visible := True;
DbGrid1.Height := 158;
DbGrid1.Width := 414;
GroupBox1.Visible := False;
GroupBox2.Visible := False;
Label11.Visible := False;
Label12.Visible := False;
Label13.Visible := False;
Label14.Visible := False;
cbLqi.Visible := False;
cbCHe.Visible := False;
cbStartTime.Visible := False;
cbFckAfterCreep.Visible := False;
cbTubeStyleClick(self);
cbDataBaseClick(self);
end;
提示第一行[Error] creep.pas(871): Statement expected but 'PROCEDURE' found应该怎么处理
...全文
102 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
cxyqnl 2012-06-05
  • 打赏
  • 举报
回复
谢谢,各位
kyle_huang 2012-05-17
  • 打赏
  • 举报
回复
代码没写完。

你再双击下窗体,就进入到了FromCreate,再把你的代码写到里面去试试。

5,392

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧