初级问题!!!! 过程和函数应在什么位置定义,如何调用? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你如果不懂的话,你蹴去看自带的系统单元文件,你看是怎么定义怎么调用实现的。例如按住 Ctrl键,鼠标点击你uses下的任意单元文件即可进入,你看看 . . . private { Private declarations } procedure pp1(a: string);//只能在本窗体用的过程 function ff1(b: string): string;//只能在本窗体用的函数 public { Public declarations } procedure pp2(a: string);//只能在其它窗体也能用的过程 function ff2(b: string): string;//只能在其它窗体也能用的函数 end;var Form1: TForm1; function ff3(n: integer): integer;//跟在public定义一样implementation{$R *.dfm}function ff3(n: integer): integer;begin //你要处理的代码end;procedure TForm1.pp1(a: string);begin //你要处理的代码end;procedure TForm1.pp2(a: string);begin //你要处理的代码end;function TForm1.ff1(b: string):string;begin //你要处理的代码end;function TForm1.ff2(b: string):string;begin //你要处理的代码end;end. 请问delphi7工程到2010的转换问题 TcpServer和TcpClient传送2进制数据方法 急!急!急! 如何改变信使服务显示的字体大小?(有点难度哦) DBGrid定位问题,困扰了我半天,帮帮我啊! 关于VS2010编程助手与unity3d 关于浮点数验证的问题! 请教一个看似简单,但有点难度的socket问题。。 动画打开窗口和关闭窗口的函数是什么????在线等待! 好消息,我解决了在 ACCESS 数据库中把保存的 JPG 文件再读到 IMAGE 上的方法 如何动态创建一个ODBC系统数据源? 简单问题,如何在edit中判断小键盘的按键?在线给分。
例如按住 Ctrl键,鼠标点击你uses下的任意单元文件即可进入,你看看
.
.
private
{ Private declarations }
procedure pp1(a: string);//只能在本窗体用的过程
function ff1(b: string): string;//只能在本窗体用的函数
public
{ Public declarations }
procedure pp2(a: string);//只能在其它窗体也能用的过程
function ff2(b: string): string;//只能在其它窗体也能用的函数
end;var
Form1: TForm1;
function ff3(n: integer): integer;//跟在public定义一样implementation{$R *.dfm}function ff3(n: integer): integer;
begin
//你要处理的代码
end;procedure TForm1.pp1(a: string);
begin
//你要处理的代码
end;procedure TForm1.pp2(a: string);
begin
//你要处理的代码
end;function TForm1.ff1(b: string):string;
begin
//你要处理的代码
end;function TForm1.ff2(b: string):string;
begin
//你要处理的代码
end;
end.