谢谢各位提醒,我试了一下,OK
//**********************************************************
//判断数据表是否存在
function TMisData.My_ExistTable(_TableName:String):Boolean;
var
MyList: TStringList;
Index: Integer;
begin
MyList := TStringList.Create;
ADOConnection1.GetTableNames(MyList, False);
try
MyList.Sort; { Find will only work on sorted lists! }
if MyList.Find(_TableName, Index) then
Result:=True
else
Result:=False;
finally
MyList.Free;
end;
end;