在MAPX中创建专题图(21分)

  • 主题发起人 wenzhi057
  • 开始时间
W

wenzhi057

Unregistered / Unconfirmed
GUEST, unregistred user!
在MAPX中创建专题图时,是不是只有表的字段才能创建了。当我在表中添加一个字<br>段时比如然后以这个字段与其它字段组合起来创建就报错,可是用ADO添加数据集没有报错,这时为什么,不会是只有在表中的字段才能创建吗?<br>select a.code,a.name,a.x_value,a.y_value,b.aa,b.bb,b.cc from <br>(select 1 as code ,<br> &nbsp; &nbsp; &nbsp; sum(case when classify='A' then id else null end )as aa,<br> &nbsp; &nbsp; &nbsp; sum(case when classify='B' then id else null end )as BB,<br> &nbsp; &nbsp; &nbsp; sum(case when classify='C' then id else null end )as CC<br>from (select count(*) id,classify from cust group by CLASSIFY)) <br>b,earea a where b.code=a.CODE<br>把它添到数据集中<br>然后创建以下专题<br> &nbsp;fields := CoFields.Create;<br> &nbsp;fields.Add('AA','AA', miAggregationAuto,miTypeNumeric);<br> &nbsp;fields.Add('BB','BB', miAggregationAuto,miTypeNumeric);<br> &nbsp;fields.Add('CC','CC', miAggregationAuto,miTypeNumeric);<br> &nbsp;thm := curMapInfo.DataSet.Themes.Add(miThemePieChart,fields,'ABCCust',0) ; //运行到这时出错 &nbsp;&quot;object is no longer valid&quot;原因
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
815
SUNSTONE的Delphi笔记
S
顶部