📄 frm_games.frm
字号:
VERSION 5.00
Begin VB.Form frmgames
BackColor = &H00000040&
Caption = "Games available..."
ClientHeight = 3930
ClientLeft = 60
ClientTop = 450
ClientWidth = 9420
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 3930
ScaleWidth = 9420
Begin VB.TextBox Text5
Appearance = 0 'Flat
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000040&
Height = 315
Left = 2100
TabIndex = 18
Top = 1680
Width = 1455
End
Begin VB.Frame Frame1
BackColor = &H00000040&
Height = 1155
Left = 1853
TabIndex = 10
Top = 2340
Width = 5715
Begin VB.CommandButton Command1
Caption = "G&o Back"
Height = 735
Left = 4380
TabIndex = 17
Top = 240
Width = 1155
End
Begin VB.CommandButton Command2
Caption = "Move First"
Height = 255
Left = 180
TabIndex = 16
Top = 240
Width = 1215
End
Begin VB.CommandButton Command3
Caption = "Move Last"
Height = 255
Left = 180
TabIndex = 15
Top = 720
Width = 1215
End
Begin VB.CommandButton Command4
Caption = "Move Previous"
Height = 255
Left = 1560
TabIndex = 14
Top = 720
Width = 1215
End
Begin VB.CommandButton Command5
Caption = "Move Next"
Height = 255
Left = 1560
TabIndex = 13
Top = 240
Width = 1215
End
Begin VB.CommandButton Command6
Caption = "Buy Game"
Height = 255
Left = 2940
TabIndex = 12
Top = 240
Width = 1215
End
Begin VB.CommandButton Command7
Caption = "Sell a game"
Height = 255
Left = 2940
TabIndex = 11
Top = 720
Width = 1215
End
End
Begin VB.Frame Frame2
BackColor = &H00000040&
Height = 1155
Left = 5460
TabIndex = 6
Top = 600
Width = 3555
Begin VB.CommandButton Command8
Caption = "G&o"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1260
TabIndex = 9
Top = 660
Width = 1155
End
Begin VB.TextBox Text4
Appearance = 0 'Flat
Height = 360
Left = 1800
TabIndex = 8
Top = 180
Width = 1455
End
Begin VB.Label Label4
AutoSize = -1 'True
BackColor = &H00000040&
Caption = "Go to Code no :-"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C0C0C0&
Height = 240
Left = 60
TabIndex = 7
Top = 300
Width = 1695
End
End
Begin VB.TextBox Text1
Appearance = 0 'Flat
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000040&
Height = 360
Left = 2100
TabIndex = 5
Top = 180
Width = 1455
End
Begin VB.TextBox Text2
Appearance = 0 'Flat
Height = 375
Left = 2100
TabIndex = 4
Top = 660
Width = 3195
End
Begin VB.TextBox Text3
Appearance = 0 'Flat
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000040&
Height = 315
Left = 2100
TabIndex = 0
Top = 1200
Width = 1455
End
Begin VB.Label Label5
AutoSize = -1 'True
BackColor = &H00000040&
Caption = "Stockr for PSZone"
BeginProperty Font
Name = "Times New Roman"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C0C0C0&
Height = 285
Left = 180
TabIndex = 19
Top = 1740
Width = 1830
End
Begin VB.Label Label1
AutoSize = -1 'True
BackColor = &H00000040&
Caption = "Code no"
BeginProperty Font
Name = "Times New Roman"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C0C0C0&
Height = 285
Left = 1200
TabIndex = 3
Top = 240
Width = 825
End
Begin VB.Label Label2
AutoSize = -1 'True
BackColor = &H00000040&
Caption = "Game name"
BeginProperty Font
Name = "Times New Roman"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C0C0C0&
Height = 285
Left = 840
TabIndex = 2
Top = 720
Width = 1200
End
Begin VB.Label Label3
AutoSize = -1 'True
BackColor = &H00000040&
Caption = "Qty Available"
BeginProperty Font
Name = "Times New Roman"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C0C0C0&
Height = 285
Left = 660
TabIndex = 1
Top = 1260
Width = 1380
End
End
Attribute VB_Name = "frmgames"
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()
RS.MoveFirst
End Sub
Private Sub Command3_Click()
RS.MoveLast
End Sub
Private Sub Command4_Click()
RS.MovePrevious
If RS.BOF = True Then
RS.MoveLast
End If
End Sub
Private Sub Command5_Click()
RS.MoveNext
If RS.EOF = True Then
RS.MoveFirst
End If
End Sub
Private Sub Form_ACTIVATE()
Set ADO = New ADODB.Connection
Set RS = New ADODB.Recordset
ADO.CursorLocation = adUseClient
ADO.ConnectionString = "provider = MSDAORA; user id =SCOTT; password =TIGER;"
ADO.Open
RS.Open "games", ADO, adOpenDynamic, adLockOptimistic, adCmdTable
Set Text1.DataSource = RS
Text1.DataField = "CODE_NO"
Set Text2.DataSource = RS
Text2.DataField = "GAME_NAME"
Set Text3.DataSource = RS
Text3.DataField = "QTY_AVAILABLE"
Set Text5.DataSource = RS
Text5.DataField = "STOCK_FOR_PSZone"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -