YouTube | Facebook | X(Twitter) | RSS

属性検索時の Where 句シンタックスを調べる方法

2016/9/1 (木)

Private Sub GetSpecialCharacter()
    'ThisDocumentの取得
    Dim pMxDocument As IMxDocument
    Set pMxDocument = ThisDocument
     
    'アクティブなデータフレームの取得
    Dim pMap As IMap
    Set pMap = pMxDocument.FocusMap
     
    '最上位レイヤの取得
    Dim pLayer As IFeatureLayer
    Set pLayer = pMap.Layer(0)
     
    Debug.Print pLayer.DataSourceType
     
    Dim pDataset As IDataset
    Set pDataset = pLayer.FeatureClass
     
    Dim pSQLSyntax As ISQLSyntax
    Set pSQLSyntax = pDataset.Workspace
     
    Debug.Print "DelimitedIdentifierPrefix", pSQLSyntax.GetSpecialCharacter(esriSQL_DelimitedIdentifierPrefix); ""
    Debug.Print "DelimitedIdentifierSuffix", pSQLSyntax.GetSpecialCharacter(esriSQL_DelimitedIdentifierSuffix); ""
    Debug.Print "EscapeKeyPrefix", pSQLSyntax.GetSpecialCharacter(esriSQL_EscapeKeyPrefix); ""
    Debug.Print "EscapeKeySuffix", pSQLSyntax.GetSpecialCharacter(esriSQL_EscapeKeySuffix); ""
    Debug.Print "WildcardManyMatch", pSQLSyntax.GetSpecialCharacter(esriSQL_WildcardManyMatch); ""
    Debug.Print "WildcardSingleMatch", pSQLSyntax.GetSpecialCharacter(esriSQL_WildcardSingleMatch)
 
End Sub

関連記事

  • この記事を書いた人

羽田 康祐

伊達と酔狂のGISエンジニア。GIS上級技術者、Esri認定インストラクター、CompTIA CTT+ Classroom Trainer、潜水士、PADIダイブマスター、四アマ。WordPress は 2.1 からのユーザーで歴だけは長い。 代表著書『地図リテラシー入門―地図の正しい読み方・描き方がわかる』 GIS を使った自己紹介はこちら。ESRIジャパン(株)所属、元青山学院大学非常勤講師を兼務。日本地図学会第31期常任委員。発言は個人の見解です。

-プログラミング, ArcGIS
-,

WINGFIELD since1981をもっと見る

今すぐ購読し、続きを読んで、すべてのアーカイブにアクセスしましょう。

続きを読む