type
h=array[1..64]of integer;
procedure Dis_Memo(A:h);
声明的时候没有报错外部
type
h=array[1..64]of integer;
h1,h2:h;想把h1传给Dis_Memo的过程中
Dis_Memo(h1);会报错该问题如何解决
h=array[1..64]of integer;
procedure Dis_Memo(A:h);
声明的时候没有报错外部
type
h=array[1..64]of integer;
h1,h2:h;想把h1传给Dis_Memo的过程中
Dis_Memo(h1);会报错该问题如何解决
解决方案 »
- Delphi如何判断sql语句是查询语句还是执行语句
- 有什么方法在 TDataSet 的 post 方法之前检测数据完整性,如果不正确,就不 post。注:我直接在 DBGrid 中新增数据
- 讨论:关于把窗体写入DLL的开发方式
- 改变ComboBox的值时如何改变其他的Edit的值?
- 怎么屏蔽 pagecontrol控件的 ctrl+ tab热键,在pagecontrol中切换,
- 请问哪位大哥有delphi中文帮助档,小弟急需,先谢了
- 无法为更新行集定位:一些值可能已在最后读取后改变--怎么解决
- listbox属性使用中的一个问题
- 关于spcomm控件的安装问题!!
- 把数组的数据写入字段
- Fastreport问题
- 求教:sql语句看不懂???
上面的是个类
type
TA = class
type
h=array[1..64]of integer;
procedure TA.Dis_Memo(A:h);type
h=array[1..64]of integer;
h1,h2:h;var
A:TA;
A.Dis_Memo(h1);
type
h=array[1..64]of integer; //声明数据类型type //声明类TA
TA = class
procedure Dis_Memo(A:h);
end;var
A:TA;
Form1: TForm1;
h1,h2:h;
implementation{$R *.dfm}
procedure TA.Dis_Memo(A:h);
begin
//////////代码略
end;
然后调用 A:=TA.Create;
A.Dis_Memo(h1);
unit BomForm;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, DB, ADODB, Grids, DBGrids, StdCtrls, Buttons,MainForm,
ToolWin, ExtCtrls;type
Tbom = class(TForm)
TreeView1: TTreeView;
private
{ Private declarations }
public
{ Public declarations }
ratio,num:double;
procedure showtree();
function checknode(pnode:Ttreenode):integer;
end;
type
Ttable=array[1..200,1..3] of string;
Tnodetable=array[1..200] of TTreeNode;
var
bom: Tbom;
mytable:TTable;
mynodetable:Tnodetable;
可以看看上面的example