|
阅读:1405回复:3
关于删除清空图层中所有记录的问题!急!!
<P>我想清空某图层中的所有记录,应该怎样做?想清除指定的记录呢?</P>
<P>请帮忙谢谢,我用delphi,</P> |
|
|
1楼#
发布于:2004-10-07 15:20
<P>recordset rec = maplayer.records;</P><P>rec.movefirst();</P><P>while(!rec.eof)</P><P>{</P><P>rec.delete();</P><P>rec.movenext();</P><P>}</P><P>rec.stopediting();</P><P>//清空图层</P><P>想清除指定的记录,用maplayer对象的seachexpression()方法选择特定的recordset 进行删除</P>
|
|
|
2楼#
发布于:2004-10-08 09:04
对,循环删除之。
|
|
|
|
3楼#
发布于:2004-10-08 18:01
<P>谢谢</P>
|
|