📄 frmsql.frm
字号:
VERSION 5.00
Begin VB.Form FrmSql
BorderStyle = 3 'Fixed Dialog
Caption = "查找"
ClientHeight = 1695
ClientLeft = 45
ClientTop = 330
ClientWidth = 5055
ControlBox = 0 'False
Icon = "FrmSql.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1695
ScaleWidth = 5055
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton CmdSql
Cancel = -1 'True
Caption = "取消(&C)"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 420
Index = 1
Left = 3480
TabIndex = 5
Top = 1185
Width = 1035
End
Begin VB.CommandButton CmdSql
Caption = "确定(&Y)"
Default = -1 'True
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 420
Index = 0
Left = 2160
TabIndex = 4
Top = 1185
Width = 1035
End
Begin VB.Frame Frame1
Caption = "查找内容"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1035
Left = 60
TabIndex = 0
Top = 60
Width = 4920
Begin VB.TextBox TxtSQL
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 2535
TabIndex = 3
Top = 420
Width = 2295
End
Begin VB.ComboBox CboField
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 180
Style = 2 'Dropdown List
TabIndex = 1
Top = 420
Width = 1800
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "like"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Left = 2040
TabIndex = 2
Top = 480
Width = 420
End
End
End
Attribute VB_Name = "FrmSql"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Public intnumfield As Integer
'Public intnumfield
Public strsqlfield As String
Private Sub CmdSql_Click(Index As Integer)
Select Case Index
Case 0
If TxtSQL.text = "" Then
intnumfield = -1
Else
intnumfield = CboField.ListIndex
strsqlfield = TxtSQL.text
End If
Case 1
intnumfield = -2
End Select
Unload Me
End Sub
Private Sub Form_Activate()
TxtSQL.SetFocus
End Sub
'Private Sub Form_Load()
' Dim intTmp As Integer
' For intTmp = 0 To intnumfield - 1
' roomnum = InStr(1, strsql(intTmp + 1), ",") - 1
' roomstr = Mid(strsql(intTmp + 1), 1, roomnum)
' CboField.AddItem roomstr
' Next
' CboField.ListIndex = 0
'End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -