type
TAArray = array of array of integer; //设置为需要的类型
function IsAA(aa: TAArray): Boolean;
begin
Result:=false;
if (aa<>nil) then
if aa[0,0]=1 then result:=true;
end;
procedure TForm1.Button1Click(Sender: TObject);
var
aa: TAArray;
begin
SetLength(aa, 1);
SetLength(aa[0], 1);
aa[0,0]:=0;
if IsAA(aa) then ShowMessage('OK')
else ShowMessage('Error');
aa:=nil;
end;