📄 fsearch.frm
字号:
VERSION 5.00
Begin VB.Form fsearch
BorderStyle = 1 'Fixed Single
Caption = "查找"
ClientHeight = 2250
ClientLeft = 7920
ClientTop = 1995
ClientWidth = 5265
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2250
ScaleWidth = 5265
Begin VB.CommandButton Command2
Caption = "完成"
Height = 495
Left = 2520
TabIndex = 5
Top = 1560
Width = 1575
End
Begin VB.CommandButton Command1
Caption = "查找"
Height = 495
Left = 720
TabIndex = 4
Top = 1560
Width = 1335
End
Begin VB.TextBox Text1
Height = 270
Left = 3120
TabIndex = 3
Top = 960
Width = 1815
End
Begin VB.ComboBox Combo3
Height = 300
ItemData = "fsearch.frx":0000
Left = 1920
List = "fsearch.frx":0002
TabIndex = 2
Top = 960
Width = 855
End
Begin VB.ComboBox Combo2
Height = 300
Left = 120
TabIndex = 1
Top = 960
Width = 1455
End
Begin VB.ComboBox Combo1
Height = 300
Left = 120
TabIndex = 0
Top = 120
Width = 1935
End
End
Attribute VB_Name = "fsearch"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public strexpression As String
Public flag As Integer
Public lname As String
Private Sub Combo1_Click()
Dim fld As mapobjects2.Field
Combo2.Clear
For Each fld In frmmain.Map1.layers(Combo1.List(Combo1.ListIndex)).Records.Fields
Combo2.AddItem fld.Name
Next fld
End Sub
Private Sub Command1_Click()
If Text1.Text = "" Or Combo1.Text = "" Or Combo2.Text = "" Or Combo3.Text = "" Then
MsgBox "请输入完整的查询条件"
Text1.Text = ""
Combo1.SetFocus
Else
flag = 1
lname = Combo1.List(Combo1.ListIndex)
frmmain.Map1.Refresh
End If
End Sub
Private Sub Command2_Click()
frmmain.Map1.layers.Clear
frmmain.legend1.RemoveAll
Unload Me
Call frmmain.loadshape
End Sub
Private Sub Form_Load()
flag = 0
Combo3.AddItem "<"
Combo3.AddItem ">"
Combo3.AddItem ">="
Combo3.AddItem "<="
Combo3.AddItem "="
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -