有a单元和b单元.
b单元写了过程procedure Ttest.getarray(arr:array of array of string; sqla:string);
begin
。。
。
end;
在a单元上调用getarray(testarray);
这样有错误请高手解答我在网上看到了在b单元的interface下写一个type ttowarray=array of array of string;
然后在b单元写了过程procedure Ttest.getarray(arr:ttowarray; sqla:string);
但是在调用时在a单元上没有type ttowarray=array of array of string;
所以不能调用或者是在里面不能放进二维数组。还有有人是用指针但不知道具体怎么做?
请各位高手帮忙。
b单元写了过程procedure Ttest.getarray(arr:array of array of string; sqla:string);
begin
。。
。
end;
在a单元上调用getarray(testarray);
这样有错误请高手解答我在网上看到了在b单元的interface下写一个type ttowarray=array of array of string;
然后在b单元写了过程procedure Ttest.getarray(arr:ttowarray; sqla:string);
但是在调用时在a单元上没有type ttowarray=array of array of string;
所以不能调用或者是在里面不能放进二维数组。还有有人是用指针但不知道具体怎么做?
请各位高手帮忙。
你可以定义一个完全一样结构的类型去用
s:Psz; getarray(arr:Psz; sqla:string);
ARR^[0]:=1
数组