📄 booklist.frm
字号:
VERSION 5.00
Begin VB.Form bookList
BackColor = &H008080FF&
Caption = "购买清单"
ClientHeight = 3555
ClientLeft = 60
ClientTop = 345
ClientWidth = 4710
LinkTopic = "Form1"
LockControls = -1 'True
Picture = "bookList.frx":0000
ScaleHeight = 3555
ScaleWidth = 4710
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton cancel
Caption = "返 回"
Height = 375
Left = 1440
TabIndex = 8
Top = 2880
Width = 1455
End
Begin VB.TextBox bookPrice
Height = 375
Left = 1680
TabIndex = 7
Top = 2160
Width = 1935
End
Begin VB.TextBox bookTypename
Height = 375
Left = 1680
TabIndex = 6
Top = 1560
Width = 1935
End
Begin VB.TextBox bookName
Height = 375
Left = 1680
TabIndex = 5
Top = 960
Width = 1935
End
Begin VB.TextBox bookNo
Height = 375
Left = 1680
TabIndex = 4
Top = 360
Width = 1935
End
Begin VB.Label Label4
BackColor = &H008080FF&
BackStyle = 0 'Transparent
Caption = "产品名称:"
Height = 255
Left = 360
TabIndex = 3
Top = 1080
Width = 975
End
Begin VB.Label Label3
BackColor = &H008080FF&
BackStyle = 0 'Transparent
Caption = "产品类型:"
Height = 255
Left = 360
TabIndex = 2
Top = 1680
Width = 975
End
Begin VB.Label Label2
BackColor = &H008080FF&
BackStyle = 0 'Transparent
Caption = "产品编号:"
Height = 255
Left = 360
TabIndex = 1
Top = 480
Width = 975
End
Begin VB.Label Label1
BackColor = &H008080FF&
BackStyle = 0 'Transparent
Caption = "产品单价:"
Height = 255
Left = 360
TabIndex = 0
Top = 2280
Width = 975
End
End
Attribute VB_Name = "bookList"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cancel_Click()
Unload Me
End Sub
Private Sub Form_Load()
If ModifyRdFlag2 = True Then
Dim rs As New ADODB.Recordset
Dim sql As String
sql = "select * from books where bookNO ='" & ModifyRdFlag1 & "'"
Set rs = TransactSQL(sql)
bookNO.Text = rs.Fields(0)
bookNO.Locked = True ' 使不可改动
bookName.Text = rs.Fields(1)
bookName.Locked = True
bookTypename.Text = rs.Fields(2)
bookTypename.Locked = True
bookPrice.Text = rs.Fields(3)
bookPrice.Locked = True
ModifyRdFlag2 = ModifyRdFlag2 Xor True
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -