ldj
ldj
路人甲
路人甲
  • 注册日期2003-10-19
  • 发帖数161
  • QQ
  • 铜币737枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:664回复:0

[求助]

楼主#
更多 发布于:2005-04-14 10:52
<P>在查询时lyr=m_map.GetLayers().Item(COleVariant("STATES.shp"));
strfield="STATE_ID> ' 0' ";
  AfxMessageBox(strfield);
rec=lyr.SearchExpression(strfield); //
rec.MoveFirst();明明有记录rec.GetCount()为-1;当strfield为空时,有记录可以显示</P>
<P>请高手指点 请示例</P>
喜欢0 评分0
游客

返回顶部