过程不能直接传递二维数组。可以这样
type
TMyArray = array[0..4,0..1] of string;
var Jud_name:TMyArray;
procedure PopClick(var Aqr:TADOQuery;Dts:TDataSource;TabName:string;
Cond:string;Jud_name:TMyArray)
type
TMyArray = array of string;
TMyArrayTW=array of TMyArray
var Jud_name:TMyArray;
procedure PopClick(var Aqr:TADOQuery;Dts:TDataSource;TabName:string;
Cond:string;Jud_name:TMyArrayTW)
你在传递前就要创建VARIANT数组才行的;
function getvariantarray(const value:integer);variant
var
v:variant;i,j:integer;
begin
v:=vararraycreate([0,value,0,value],variant);
for i:=0 to value-1 do
for j:=0 to value-1 do
v[j,i]:='you value';
result:=v;
end;