procedure shows(lb:lianbiao);
var
lb_t:lianbiao;begin
lb_t:=lb;
while(lb_t.ptr_front.ptr_back<>nil) do
begin
listbox1.Item.add(inttostr(lb_t.ptr.num)) ;
end;
end;
其中listbox1.Item.add(inttostr(lb_t.ptr.num)) ;系统提示错误:
Undeclared identifier: 'listbox1'
Missing operator or semicolon可是listbox1是我的列表控件的名字。声明部分都有:TForm1 = class(TForm)
Label1: TLabel;
zrs: TEdit;
Label2: TLabel;
Listbox1: TListBox; \\?????????????????????????????
Button1: TButton;
Button2: TButton;
procedure FormCreate(Sender: TObject);
procedure Button1Click(Sender: TObject);
var
lb_t:lianbiao;begin
lb_t:=lb;
while(lb_t.ptr_front.ptr_back<>nil) do
begin
listbox1.Item.add(inttostr(lb_t.ptr.num)) ;
end;
end;
其中listbox1.Item.add(inttostr(lb_t.ptr.num)) ;系统提示错误:
Undeclared identifier: 'listbox1'
Missing operator or semicolon可是listbox1是我的列表控件的名字。声明部分都有:TForm1 = class(TForm)
Label1: TLabel;
zrs: TEdit;
Label2: TLabel;
Listbox1: TListBox; \\?????????????????????????????
Button1: TButton;
Button2: TButton;
procedure FormCreate(Sender: TObject);
procedure Button1Click(Sender: TObject);
解决方案 »
- 为什么会出现接收的流会比发送的流大?
- 关于Indy的 TIDHttp, 进来看看,用标题一句话说不清楚
- 100分!![Fatal Error] Unit1.pas(26): Could not create output file 'Unit1.dcu
- 这套表情图标的版权是什么公司的?
- 怎么实现在delphi 中向SQL Server 附加数据库?
- 关于注册表的问题?
- 初学delphi,关于ADO问题一问。
- 关于计时的!为什么不对??????
- 帮忙修改BusinessSkinForm控件的一个小问题!!!
- Delphi 下怎么设置TAB键缩进空格数? 先谢了!
- 光驱!!!
- 打包问题??? 在线
这不是类方法,而你的Listbox是定义在TForm1中的.
procedure TForm1.shows(lb:lianbiao);