阅读:1687回复:6
大家来帮帮我吧!
<P>用searchexpression有问题大家帮!!!HELP</P>
<P>dim re as mapobject2.recordset</P> <P>dim layer as maplayer</P> <P>set re =layer.searchexpression("id=1")</P> <P>一直有错误,说对象没有该属性!!!!!</P> <P>会不会是软件没破解好?</P> |
|
1楼#
发布于:2005-01-16 20:14
默认的ID字段名称为“FeatherID”
|
|
2楼#
发布于:2005-01-10 18:51
<P>可是现在我用MAP1.DRAWHAPE RE,G</P><P>一直出错,说没对象</P><P>是怎么回事?????</P>
|
|
3楼#
发布于:2005-01-10 17:42
<P>dim re as mapobject2.recordset</P><P>dim layer as maplayer</P><P>set layer = map.layers.item(X) ; //先把layer指定到要用的那一层。x为某一层序号</P><P>set re =layer.searchexpression("id=1")</P>
|
|
4楼#
发布于:2005-01-10 15:16
<P>我后来改了你们所说的但是在AFTERDRAWLAYER事件下用</P><P>map1.drawshape re, g</P><P>画不出来,说是没有对象</P>
|
|
5楼#
发布于:2005-01-10 14:55
是呀,是否有ID字段?
|
|
|
6楼#
发布于:2005-01-10 10:59
set re =layer.searchexpression("id=1")
程序中第一没有写哪层?第二是不是你真的没有那个id呢 |
|