J
jianshangcao
Unregistered / Unconfirmed
GUEST, unregistred user!
我照书上顺序检查了多遍,确定跟书上所述一样,可是还是报这个错误.
也照书上把DataSetProvider的poAllowCommandText属性设为True.
我想可能是ClientDataSet1组件Open出错.
if (PageControl1.ActivePageIndex = 0) then
begin
sSelect := sSQl + lbTables.Items[lbTables.itemindex] ;
ClientDataSet1.Close;
ClientDataSet1.CommandText := sSelect;
ClientDataSet1.Open;
///出错
end
else
begin
sSelect := mmSql.Text;
ClientDataSet1.Close;
ClientDataSet1.CommandText := sSelect;
ClientDataSet1.Open;///出错
end;
我调试了一下,是程序到open这句时才出错.
什么原因呢??
也照书上把DataSetProvider的poAllowCommandText属性设为True.
我想可能是ClientDataSet1组件Open出错.
if (PageControl1.ActivePageIndex = 0) then
begin
sSelect := sSQl + lbTables.Items[lbTables.itemindex] ;
ClientDataSet1.Close;
ClientDataSet1.CommandText := sSelect;
ClientDataSet1.Open;
///出错
end
else
begin
sSelect := mmSql.Text;
ClientDataSet1.Close;
ClientDataSet1.CommandText := sSelect;
ClientDataSet1.Open;///出错
end;
我调试了一下,是程序到open这句时才出错.
什么原因呢??