📄 form9.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{E95A2510-F3D1-416D-823B-4F840FE98091}#3.0#0"; "Command.ocx"
Begin VB.Form Form9
BackColor = &H80000001&
BorderStyle = 3 'Fixed Dialog
Caption = "初始化"
ClientHeight = 1140
ClientLeft = 45
ClientTop = 330
ClientWidth = 6615
DrawStyle = 5 'Transparent
FillColor = &H80000005&
FillStyle = 0 'Solid
LinkTopic = "Form9"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1140
ScaleWidth = 6615
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin CSCommand.Command Command2
Height = 255
Left = 5640
TabIndex = 3
Top = 840
Width = 735
_ExtentX = 1296
_ExtentY = 450
IconAlign = 0
Icon = "Form9.frx":0000
Caption = "取消"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin CSCommand.Command Command1
Height = 255
Left = 4800
TabIndex = 2
Top = 840
Width = 735
_ExtentX = 1296
_ExtentY = 450
IconAlign = 0
Icon = "Form9.frx":001C
Caption = "初使化"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 5160
Top = 120
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
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 = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin MSComctlLib.ProgressBar ProgressBar1
Height = 255
Left = 360
TabIndex = 1
Top = 480
Width = 6015
_ExtentX = 10610
_ExtentY = 450
_Version = 393216
Appearance = 0
Scrolling = 1
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "您上次操作没有更新临时表,您要初始化吗?"
ForeColor = &H00FFFFFF&
Height = 180
Left = 360
TabIndex = 0
Top = 120
Width = 3600
End
End
Attribute VB_Name = "Form9"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim workarea(500)
Dim Counter
'Private Sub Form_Activate()
'
' ProgressBar1.Visible = True
' ProgressBar1.Max = UBound(workarea)
' ProgressBar1.Value = ProgressBar1.Min
' For Counter = LBound(workarea) To UBound(workarea)
' workarea(Counter) = "initial value " & Counter
' ProgressBar1.Value = Counter
' Adodc1.RecordSource = "SELECT * FROM 销售临时表"
' Adodc1.Refresh
' If Adodc1.Recordset.RecordCount <> 0 Then
' Adodc1.Recordset.Delete
' Adodc1.Recordset.Update
' End If
' Next Counter
' Label1.Caption = "初始化完毕!!"
' ProgressBar1.Visible = False
'MDIForm1.Show
'Unload Me
'End Sub
Private Sub Command1_Click()
Label1.Caption = "正在初始化......"
ProgressBar1.Visible = True
ProgressBar1.Max = UBound(workarea)
ProgressBar1.Value = ProgressBar1.Min
For Counter = LBound(workarea) To UBound(workarea)
workarea(Counter) = "initial value " & Counter
ProgressBar1.Value = Counter
Adodc1.RecordSource = "SELECT * FROM 销售临时表"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount <> 0 Then
Adodc1.Recordset.Delete
Adodc1.Recordset.Update
End If
Next Counter
Label1.Caption = "初始化完毕!!"
Unload Form9
MDIForm1.Show
ProgressBar1.Visible = False
'ProgressBar1.Value = ProgressBar1.Min
End Sub
Private Sub Command2_Click()
Unload Form9
MDIForm1.Show
End Sub
Private Sub Form_Load()
Adodc1.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=管理系统"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -