zrguang
路人甲
路人甲
  • 注册日期2004-07-15
  • 发帖数21
  • QQ
  • 铜币185枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1259回复:0

查询检索 ,很急!!!

楼主#
更多 发布于:2004-07-15 15:42
<P>如何显示数据 </P>
<P>我用Itable 进行查询 如下 怎么显示这些数据啊 </P>

<P>If TypeOf pTable Is IFeatureClass Then
      Dim pDSet As IDataset
      Dim pFeatureLayer As IFeatureLayer
      Set pFeatureLayer = New FeatureLayer
      Set pFeatureLayer.FeatureClass = pTable
      Set pDSet = pTable
      pFeatureLayer.Name = pDSet.Name
       Set m_f = pFeatureLayer.FeatureClass
      Dim pfeatlay As IFeatureLayer
      Set pfeatlay = New FeatureLayer
      Set pfeatlay.FeatureClass = m_f
      
      If MsgBox("需要显示属性数据吗?", vbYesNo, "显示属性数据") = vbYes Then
      DE.AttributeShow
      End If
      frmShowMap.MapControl1.AddLayer pFeatureLayer
      frmShowMap.Show vbModal
      m_pMxDoc.AddLayer pFeatureLayer
      
      
      Else ' Add the table to map
      Dim pStTabCol As IStandaloneTableCollection
      Dim pStTable As IStandaloneTable
      Set pStTabCol = m_pMxDoc.FocusMap
      Set pStTable = New StandaloneTable
      pStTable.Name = Me.strname.text
      Set pStTable.Table = pTable
      pStTabCol.AddStandaloneTable pStTable</P>
<P>如何把 pStTable 中的数据显示出来  谢谢! 很急用</P>
喜欢0 评分0
游客

返回顶部