?? frmmain.frm
字號:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form frmMain
Caption = "Database Editor"
ClientHeight = 5865
ClientLeft = 165
ClientTop = 735
ClientWidth = 7725
Icon = "frmMain.frx":0000
LinkTopic = "Form1"
ScaleHeight = 5865
ScaleWidth = 7725
StartUpPosition = 3 'Windows Default
Begin MSDataGridLib.DataGrid gridData
Bindings = "frmMain.frx":0442
Height = 3975
Left = 120
TabIndex = 7
Top = 480
Width = 7455
_ExtentX = 13150
_ExtentY = 7011
_Version = 393216
AllowUpdate = 0 'False
HeadLines = 1
RowHeight = 15
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
BeginProperty Column00
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1033
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1033
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
Begin VB.Frame fraSqlStatement
Caption = "SQL Statement"
Height = 855
Left = 120
TabIndex = 6
Top = 4560
Width = 7455
Begin VB.CommandButton cmdExecute
Caption = "Execute"
Height = 495
Left = 6240
TabIndex = 3
Top = 240
Width = 1095
End
Begin VB.TextBox txtSqlStatement
Height = 495
Left = 120
MultiLine = -1 'True
TabIndex = 2
Top = 240
Width = 6015
End
End
Begin VB.CheckBox chkEditMode
Caption = "&Edit Mode"
Height = 255
Left = 6480
TabIndex = 1
Top = 120
Width = 1095
End
Begin MSAdodcLib.Adodc adoData
Height = 330
Left = 4800
Top = 0
Visible = 0 'False
Width = 1455
_ExtentX = 2566
_ExtentY = 582
ConnectMode = 3
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 2
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "adoData"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.ComboBox cmbTables
Height = 315
Left = 120
Style = 2 'Dropdown List
TabIndex = 0
Top = 120
Width = 2655
End
Begin VB.Image imgLoading
Height = 240
Left = 7320
Picture = "frmMain.frx":0458
Top = 5520
Visible = 0 'False
Width = 240
End
Begin VB.Label lblStatus
AutoSize = -1 'True
Caption = "Status"
Height = 195
Left = 120
TabIndex = 5
Top = 5520
Width = 450
End
Begin VB.Label lblDatabaseName
AutoSize = -1 'True
Caption = "Database Name"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 2880
TabIndex = 4
Top = 120
Width = 1710
End
Begin VB.Menu mnuFile
Caption = "&File"
Begin VB.Menu mnuOpenAccess
Caption = "Open &Access Database"
Shortcut = ^A
End
Begin VB.Menu mnuOpenNetwork
Caption = "Open &Network Database"
Shortcut = ^N
End
Begin VB.Menu mnuSep
Caption = "-"
End
Begin VB.Menu mnuViewColumns
Caption = "&View Column Types"
Shortcut = ^I
End
Begin VB.Menu mnuSep6
Caption = "-"
End
Begin VB.Menu mnuEditMode
Caption = "&Edit Mode"
Shortcut = ^E
End
Begin VB.Menu mnuShowSQL
Caption = "&Show SQL Statements"
Shortcut = ^S
End
Begin VB.Menu mnuSep11
Caption = "-"
End
Begin VB.Menu mnuClearPassword
Caption = "&Clear Password"
Shortcut = ^Y
End
Begin VB.Menu mnuReload
Caption = "&Reload Table List"
Shortcut = ^R
End
Begin VB.Menu mnuSep2
Caption = "-"
End
Begin VB.Menu mnuExit
Caption = "E&xit"
End
End
Begin VB.Menu mnuEdit
Caption = "&Edit"
Begin VB.Menu mnuPurgeDate
Caption = "&Purge by Date"
Shortcut = ^P
End
Begin VB.Menu mnuCompact
Caption = "Compact Database"
End
Begin VB.Menu mnuSep3
Caption = "-"
End
Begin VB.Menu mnuAddTable
Caption = "Add &Table"
Shortcut = ^T
End
Begin VB.Menu mnuRenameTable
Caption = "Re&name Table"
Shortcut = ^Z
End
Begin VB.Menu mnuDropTable
Caption = "Drop Ta&ble"
Shortcut = ^B
End
Begin VB.Menu mnuSep4
Caption = "-"
End
Begin VB.Menu mnuAddColumn
Caption = "Add &Column"
Shortcut = ^M
End
Begin VB.Menu mnuRenameColumn
Caption = "Rename Column"
Shortcut = ^W
Visible = 0 'False
End
Begin VB.Menu mnuDeleteColumn
Caption = "De&lete Column"
Shortcut = ^L
End
End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim SortOrder As Boolean
Dim LockTextBox As Boolean
Dim LastColumnSort As Integer
Private Sub cmdExecute_Click()
If Trim(txtSqlStatement) = "" Then Exit Sub
On Error GoTo e_Trap
imgLoading.Visible = True
Me.Refresh
SortOrder = True
adoData.RecordSource = txtSqlStatement
adoData.Refresh
Set gridData.DataSource = adoData.Recordset
lblStatus.caption = "Record Count: " & adoData.Recordset.RecordCount
imgLoading.Visible = False
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -