⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 selectedform.frm

📁 下载后
💻 FRM
字号:
VERSION 5.00
Begin VB.Form SelectedForm 
   Caption         =   "Selection"
   ClientHeight    =   4620
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3750
   LinkTopic       =   "Form3"
   ScaleHeight     =   4620
   ScaleWidth      =   3750
   StartUpPosition =   3  'Windows Default
   Begin VB.ComboBox cboIDs 
      Height          =   288
      Left            =   120
      TabIndex        =   1
      Text            =   "Combo1"
      Top             =   1320
      Width           =   3012
   End
   Begin VB.ListBox fieldList 
      Height          =   1815
      Left            =   120
      Sorted          =   -1  'True
      TabIndex        =   0
      Top             =   2400
      Width           =   3012
   End
   Begin VB.Label Numfound 
      Caption         =   "Numfound"
      Height          =   252
      Left            =   120
      TabIndex        =   4
      Top             =   240
      Width           =   1932
   End
   Begin VB.Label featurePrompt 
      Caption         =   "Current Feature ID:"
      Height          =   372
      Left            =   120
      TabIndex        =   3
      Top             =   840
      Width           =   3012
   End
   Begin VB.Label ftypeLabel 
      Caption         =   "ftypeLabel"
      Height          =   372
      Left            =   120
      TabIndex        =   2
      Top             =   1920
      Width           =   3012
   End
End
Attribute VB_Name = "SelectedForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cboIDs_Click()
    Dim i As Integer
    Dim curfield As MapObjects2.Field
    If SelectedFormUp Then
        Exit Sub
    End If
    gSelection.MoveFirst
    fieldList.Clear
    For i = 1 To cboIDs.ListIndex
        gSelection.MoveNext
    Next i

    For Each curfield In gSelection.Fields
        If curfield.Type = moString Then
            fieldList.AddItem curfield.Name + " = " + curfield.Value
        Else
            fieldList.AddItem curfield.Name + " = " + curfield.ValueAsString
        End If
    Next curfield
    Form1.Map1.FlashShape gSelection("shape").Value, 3
End Sub


Private Sub Form_Unload(Cancel As Integer)
    
    Set gSelection = ActiveLayer.SearchExpression("featureId = -1")
    
    Form1.Map1.Refresh
End Sub


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -