函数添加的小问题 我在delphi6.0中添加一个自定义函数,在type里面声明了函数名称,在implementation下面定义了函数体,格式什么都没有问题,但是当我要编译的时候就跳走了,所有我添加的东西都没有了,不知道为什么,有没有哪个大哥知道什么原因阿? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 unit Unit2;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons;type TForm2 = class(TForm) BitBtn1: TBitBtn; procedure BitBtn1Click(Sender: TObject); private { Private declarations } function aaa:string; public { Public declarations } end;var Form2: TForm2;implementation{$R *.dfm}{ TForm2 }function TForm2.aaa: string;begin Result:='hello world';end;procedure TForm2.BitBtn1Click(Sender: TObject);beginshowmessage( aaa );end;end. 呵呵,用Private的方法比较好,谢谢! delphi指针数组 接着 在 delphi 中如何调用 水晶报表? 关于RS-232串行通信的开发,大家给出出主意 IntraWeb的b/s结构系统如何发布 怎样动态创建数据库表? 谁知道怎么让全文检索能检索到PDF文件的内容? ado? bde? delphi+oracle+storeprocedure 我想調用WINDOWS的'NET SEND IP地址 信息內容 '命令﹐ 實現簡單的一對一聊天﹐可 求教adoconecttion的连接字串 添加函数的小问题 关于多线程读文件问题。
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons;type
TForm2 = class(TForm)
BitBtn1: TBitBtn;
procedure BitBtn1Click(Sender: TObject);
private
{ Private declarations }
function aaa:string;
public
{ Public declarations }
end;var
Form2: TForm2;implementation{$R *.dfm}{ TForm2 }function TForm2.aaa: string;
begin
Result:='hello world';
end;procedure TForm2.BitBtn1Click(Sender: TObject);
begin
showmessage( aaa );
end;end.