📄 form4.frm
字号:
VERSION 5.00
Begin VB.Form Form4
BorderStyle = 1 'Fixed Single
ClientHeight = 3225
ClientLeft = 15
ClientTop = 15
ClientWidth = 4875
ControlBox = 0 'False
Icon = "Form4.frx":0000
LinkTopic = "Form4"
MaxButton = 0 'False
MinButton = 0 'False
Picture = "Form4.frx":1782
ScaleHeight = 3225
ScaleWidth = 4875
StartUpPosition = 3 '窗口缺省
Begin VB.Timer Timer2
Enabled = 0 'False
Interval = 10
Left = 360
Top = 2520
End
Begin VB.Timer Timer1
Interval = 10
Left = 480
Top = 1800
End
Begin VB.TextBox Text3
DataField = "话费"
DataSource = "Data1"
Height = 270
Left = 5040
Locked = -1 'True
TabIndex = 3
Top = 4200
Width = 495
End
Begin VB.TextBox Text2
DataField = "真正时长"
DataSource = "Data1"
Height = 270
Left = 3600
Locked = -1 'True
TabIndex = 2
Top = 4200
Width = 855
End
Begin VB.TextBox Text1
DataField = "时长"
DataSource = "Data1"
Height = 270
Left = 2040
Locked = -1 'True
TabIndex = 1
Top = 4200
Width = 855
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "C:\Documents and Settings\ljd1\My Documents\db1.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 405
Left = 2040
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "cdr"
Top = 4920
Width = 2055
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "系统分析中........"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 1320
TabIndex = 5
Top = 1440
Width = 2160
End
Begin VB.Label Label1
DataField = "被叫"
DataSource = "Data1"
Height = 255
Left = 840
TabIndex = 4
Top = 4200
Width = 1215
End
Begin VB.Label Label5
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "被叫4 时长1 真正时长2 金额3"
Height = 180
Left = 1200
TabIndex = 0
Top = 3840
Width = 4230
End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Timer1_Timer()
If Text2.Text <> "" Then
If Left(Label1.Caption, 6) <> "86371" Then
Text3.Text = Text2.Text * 0.15
Else
Text3.Text = Text2.Text * 0.1
End If
End If
Timer2.Enabled = True
End Sub
Private Sub Timer2_Timer()
If Data1.Recordset.EOF = False Then
Data1.Recordset.MoveNext
Else
Form1.Show
Unload Form4
End If
Timer2.Enabled = False
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -