返回值为 死进程的 id 号

  
Private Function getProgID(pFeatureWorkspace As IFeatureWorkspace, versionName As String)

' Create Query Definition
Dim pCursor As ICursor
Dim pRow As IRow
Dim pQueryDef As IQueryDef
Set pQueryDef = pFeatureWorkspace.CreateQueryDef
' Provide list of tables to join
pQueryDef.Tables = "object_locks ,versions"
' Retrieve the fields from all  tables
pQueryDef.SubFields = "object_locks.sde_id,versions.name"
' Set up join
pQueryDef.WhereClause = "object_locks.object_id = versions.version_id and  versions.name = '" + versionName + "'"
Set pCursor = pQueryDef.Evaluate
Set pRow = pCursor.NextRow
If Not pRow Is Nothing Then
   getProgID = pRow.Value(0)
Else
   getProgID = ""
End If
 
End Function

 

 

posted on 2006-06-14 09:03 简单就是美 阅读(81) 评论(0)  编辑  收藏 所属分类: ArcGIS开发

导航

统计

常用链接

随笔分类(95)

随笔档案(91)

新闻分类(6)

新闻档案(15)

积分与排名

最新评论

阅读排行榜