📄 frm_consoles.frm
字号:
VERSION 5.00
Begin VB.Form frmconsoles
BackColor = &H00000040&
Caption = "Consoles Available"
ClientHeight = 3075
ClientLeft = 5175
ClientTop = 3150
ClientWidth = 6585
LinkTopic = "Form1"
MDIChild = -1 'True
Moveable = 0 'False
ScaleHeight = 3075
ScaleWidth = 6585
Begin VB.CommandButton Command5
Caption = "Move Next"
Height = 315
Left = 5100
TabIndex = 12
Top = 1140
Width = 1215
End
Begin VB.CommandButton Command4
Caption = "Move Previous"
Height = 315
Left = 5100
TabIndex = 11
Top = 1620
Width = 1215
End
Begin VB.CommandButton Command3
Caption = "Move Last"
Height = 315
Left = 3780
TabIndex = 10
Top = 1620
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "Move First"
Height = 315
Left = 3780
TabIndex = 9
Top = 1140
Width = 1215
End
Begin VB.TextBox Text4
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 = 285
Left = 1620
TabIndex = 4
Top = 1920
Width = 1455
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 = 1620
TabIndex = 3
Top = 1440
Width = 1455
End
Begin VB.TextBox Text2
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 = 1620
TabIndex = 2
Top = 960
Width = 1455
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 = 1620
TabIndex = 1
Top = 420
Width = 2235
End
Begin VB.CommandButton Command1
Caption = "G&o Back"
Height = 315
Left = 4500
TabIndex = 0
Top = 2040
Width = 1155
End
Begin VB.Label Label4
AutoSize = -1 'True
BackColor = &H00000040&
Caption = "PSP"
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 = 1080
TabIndex = 8
Top = 1920
Width = 405
End
Begin VB.Label Label3
AutoSize = -1 'True
BackColor = &H00000040&
Caption = "Playstation 2"
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 = 240
TabIndex = 7
Top = 1500
Width = 1290
End
Begin VB.Label Label2
AutoSize = -1 'True
BackColor = &H00000040&
Caption = "Playstation 1"
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 = 240
TabIndex = 6
Top = 960
Width = 1290
End
Begin VB.Label Label1
AutoSize = -1 'True
BackColor = &H00000040&
Caption = "Condition"
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 = 540
TabIndex = 5
Top = 480
Width = 960
End
End
Attribute VB_Name = "frmconsoles"
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 "consoles", ADO, adOpenDynamic, adLockOptimistic, adCmdTable
Set Text1.DataSource = RS
Text1.DataField = "CONDITION"
Set Text2.DataSource = RS
Text2.DataField = "PLAYSTATION1"
Set Text3.DataSource = RS
Text3.DataField = "PLAYSTATION2"
Set Text4.DataSource = RS
Text4.DataField = "PSP"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -