📄 frmfind.frm
字号:
VERSION 5.00
Begin VB.Form frmFind
BorderStyle = 4 'Fixed ToolWindow
Caption = "条件"
ClientHeight = 3030
ClientLeft = 3135
ClientTop = 3825
ClientWidth = 4860
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3030
ScaleWidth = 4860
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame1
Height = 2055
Left = 120
TabIndex = 6
Top = 120
Width = 4575
Begin VB.TextBox txtV
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 1200
TabIndex = 1
Top = 960
Width = 3255
End
Begin VB.OptionButton Option1
Caption = "向前"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 0
Left = 1920
TabIndex = 2
Top = 1560
Value = -1 'True
Width = 975
End
Begin VB.OptionButton Option1
Caption = "向后"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 1
Left = 3360
TabIndex = 3
Top = 1560
Width = 975
End
Begin VB.ComboBox ComboColName
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 345
Left = 1200
Style = 2 'Dropdown List
TabIndex = 0
Top = 315
Width = 3255
End
Begin VB.ComboBox ComboKey
Height = 315
Left = 480
TabIndex = 7
Text = "Combo2"
Top = 2760
Width = 390
End
Begin VB.Label Label1
Caption = "方向:"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Index = 2
Left = 360
TabIndex = 10
Top = 1620
Width = 1335
End
Begin VB.Label Label1
Caption = "查值:"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Index = 1
Left = 360
TabIndex = 9
Top = 960
Width = 855
End
Begin VB.Label Label1
Caption = "列名:"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Index = 0
Left = 360
TabIndex = 8
Top = 360
Width = 855
End
End
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "取消"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 3600
TabIndex = 5
Tag = "Cancel"
Top = 2520
Width = 1140
End
Begin VB.CommandButton cmdOK
Caption = "确认"
Default = -1 'True
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 2040
TabIndex = 4
Tag = "OK"
Top = 2520
Width = 1140
End
End
Attribute VB_Name = "frmFind"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public sps As spListHeaders
Public ok As Boolean
Public StrFind As String
Public ForeDirection As Boolean
Private Sub Cmdcancel_Click()
Unload Me
End Sub
Private Sub CmdOk_Click()
Dim strx As String
ok = True
If Me.ComboColName = "" Then
Me.ComboColName.ListIndex = 1
End If
Me.ComboKey.ListIndex = Me.ComboColName.ListIndex
'strx = IIf(Me.Option1(0).Value, " ASC ", " DESC")
StrFind = Me.ComboKey & "='" & Me.txtV & "'"
ForeDirection = Me.Option1(0).value
Unload Me
End Sub
Private Sub Form_Load()
ok = False
Dim i As Long
For i = 1 To sps.Count
Me.ComboColName.AddItem sps(i).caption
Me.ComboKey.AddItem sps(i).key
Next
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -