📄 设置.frm
字号:
VERSION 5.00
Begin VB.Form P设置
Caption = "图书馆管理系统"
ClientHeight = 2565
ClientLeft = 60
ClientTop = 450
ClientWidth = 7035
LinkTopic = "Form1"
ScaleHeight = 2565
ScaleWidth = 7035
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
Caption = "返回"
Height = 375
Left = 4800
TabIndex = 4
Top = 1920
Width = 1455
End
Begin VB.CommandButton Command1
Caption = "更改"
Height = 375
Left = 1200
TabIndex = 3
Top = 1920
Width = 1575
End
Begin VB.Frame Frame1
Caption = "常规设置"
Height = 1215
Left = 720
TabIndex = 0
Top = 480
Width = 5655
Begin VB.TextBox Text1
Height = 375
Left = 2760
TabIndex = 2
Text = "5"
Top = 360
Width = 2055
End
Begin VB.Label Label1
Caption = "读者借书数量上限"
Height = 255
Left = 1080
TabIndex = 1
Top = 480
Width = 1815
End
End
End
Attribute VB_Name = "P设置"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim DataLimit As Integer
DataLimit = Val(Trim(Text1.Text))
Set db = OpenDatabase(App.Path & "\图书001")
Set rs = db.OpenRecordset("书籍上限")
rs.Edit
rs.上限 = DataLimit
rs.Update
rs.Close
MsgBox "设置成功"
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -