我有个自定义过程是这样的:procedure test;
begin
label1.caption:='hi';
end;运行报错,一定要这样才能通过:procedure test;
begin
from1.label1.caption:='hi';
end; 请问如何声明该过程可以用第一种方法。另问一句,这2个过程有什么利弊,比如内存占用等。
begin
label1.caption:='hi';
end;运行报错,一定要这样才能通过:procedure test;
begin
from1.label1.caption:='hi';
end; 请问如何声明该过程可以用第一种方法。另问一句,这2个过程有什么利弊,比如内存占用等。
解决方案 »
- 请教一段小程序
- if key = #2 then sg_st_staff.Visible := true;
- 2000下没问题,98下常死机?
- 传奇3外挂源代码
- 下载不了
- 请问tts(text to speech)怎样安装和使用
- 有没有人有项目管理软件开发的经验,
- access 中“是/否”类型的字段在dbgrid中怎样显示
- 在mis的开发中,事务和锁一般需要自己定做吗,另外,在单机上怎么验证多用户系统是否成功??//牛虻
- 如何将窗体设成在任意部分都可使用鼠标拖动的窗体?
- 如何给DBGrid加上可以选择时间日期的功能
- @@为什么我的程序在关闭delphi的时候出错:Access violation at address 0083B551 in module ‘VCL70.BPL’.Read of address FFFFFFFF.
interface
uses
windows;
type
TForm1=class(TForm)
procedure test;<------------------A
private
procedure test;<------------------B
public
procedure test;<------------------C
end;在ABC哪个位置?
interface
uses
windows;
type
TForm1=class(TForm)
procedure test;<------------------A
private publicend;
procedure TForm1.test;
begin
label1.caption:='hi';
end;
第二个你定义的过程作为了TForm1的成员函数,你必须定义在protected,private,public这些关键字之下。所以你不能写在你所谓的A的位置。