📄 添加窗口.frm
字号:
VERSION 5.00
Begin VB.Form frmAdd
ClientHeight = 4020
ClientLeft = 60
ClientTop = 345
ClientWidth = 5415
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4020
ScaleWidth = 5415
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "记录"
Height = 495
Left = 3960
TabIndex = 5
Top = 3480
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "退出"
Height = 495
Left = 2520
TabIndex = 4
Top = 3480
Width = 1095
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 2175
Left = 240
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 3
Top = 1200
Width = 5055
End
Begin VB.ComboBox Combo1
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 240
TabIndex = 2
Top = 380
Width = 5055
End
Begin VB.Label Label2
Caption = "输入内容"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 1
Top = 840
Width = 1095
End
Begin VB.Label Label1
Caption = "字段名"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 480
TabIndex = 0
Top = 120
Width = 735
End
End
Attribute VB_Name = "frmAdd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Command2_Click()
'Dim nrecall As Integer
'If Not frmMain.adoData.Recordset Is Nothing Then '如记录不为空则
' Combo2.Clear
' With frmMain.adoData.Recordset.filter
' For nrecall = 0 To .Count - 1
' Combo2.AddItem .Item(nrecall).Name
' Next nrecall
' End With
' If defaultIndex = -1 Then
' Combo2.ListIndex = 1
' ElseIf defaultIndex <= Combo1.ListCount - 1 Then
' Combo2.ListIndex = defaultIndex
' End If
'End If
MsgBox "对不起,此功能没得到受权,无效!请与开发商联系...", vbOKOnly, "警告"
Unload Me
End Sub
Private Sub Form_Load()
Dim nCount As Integer
If Not frmMain.adoData.Recordset Is Nothing Then
Combo1.Clear
With frmMain.adoData.Recordset.Fields
For nCount = 0 To .Count - 1
Combo1.AddItem .Item(nCount).Name
Next nCount
End With
If defaultIndex = -1 Then
Combo1.ListIndex = 1
ElseIf defaultIndex <= Combo1.ListCount - 1 Then
Combo1.ListIndex = defaultIndex
End If
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -