if datam1.simpledataset1.Findkey(['namevalue'])then
        showmessage('找到');
一运行老是提示 simpledataset1:"no index currently active" 
我的simpledataset1连接的表是有关键字和索引的,请个位高手看看
如果我用:
   datam1.simpledataset1.SetKey;
   datam1.spDesFlow.FieldByNa('desid').AsString:=‘p01002’;
   if datam1.spDesFlow.GotoKey then
      showmessage('找到');
运行是明明有却不能找到