📄 1.frm
字号:
VERSION 5.00
Begin VB.Form 设置
Caption = "设置"
ClientHeight = 5265
ClientLeft = 60
ClientTop = 450
ClientWidth = 7635
LinkTopic = "Form1"
ScaleHeight = 5265
ScaleWidth = 7635
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "退出"
Height = 735
Left = 3840
TabIndex = 5
Top = 3480
Width = 1455
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 735
Left = 1080
TabIndex = 4
Top = 3480
Width = 1575
End
Begin VB.TextBox Text2
Height = 735
Left = 2760
TabIndex = 3
Top = 1920
Width = 1815
End
Begin VB.TextBox Text1
Height = 735
Left = 2760
TabIndex = 1
Top = 720
Width = 1815
End
Begin VB.Label Label2
Caption = "还书期限:"
Height = 735
Left = 720
TabIndex = 2
Top = 1920
Width = 1575
End
Begin VB.Label Label1
Caption = "限制借书本数:"
Height = 495
Left = 720
TabIndex = 0
Top = 840
Width = 1455
End
End
Attribute VB_Name = "设置"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim str As String
Dim r As Integer
str = "select * from LIB "
ExecSql (str)
If adoRs.EOF Then
adoRs.AddNew
Else
adoRs.MoveFirst
End If
str = "最大借书本数是" + Text1.Text + "本,还书期限是" + Text2.Text + "天,确定"
r = MsgBox(str, 33)
If r = 0 Then
adoRs.Fields("maxbooks") = Text1.Text
adoRs.Fields("returnbooks") = Text2.Text
adoRs.Update
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -