📄 ginwaveimei&nettool.frm
字号:
VERSION 5.00
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form frmMain
Caption = "Ginwave IMEI-Net Records Analysis Tool (Text to Access)"
ClientHeight = 6285
ClientLeft = 1110
ClientTop = 345
ClientWidth = 7635
LinkTopic = "Form2"
ScaleHeight = 6285
ScaleWidth = 7635
Begin VB.CheckBox chkIfCorrective
BackColor = &H00C0FFC0&
Caption = "Correct Invalid Records"
Height = 375
Left = 360
TabIndex = 23
Top = 3240
Width = 3135
End
Begin VB.ListBox LstInValidMessages
Height = 3180
Left = 4080
TabIndex = 21
Top = 360
Width = 3375
End
Begin VB.TextBox txtIMEIDatabaseFileName
Height = 285
Left = 4320
TabIndex = 20
Text = "Text1"
Top = 3960
Width = 3135
End
Begin VB.CommandButton cmdTextConvertToAccess
BackColor = &H00FF00FF&
Caption = ">>>>>>"
Height = 255
Left = 3360
Style = 1 'Graphical
TabIndex = 18
Top = 3960
Width = 855
End
Begin MSComDlg.CommonDialog CommonDialog1
Left = 3480
Top = 3240
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.TextBox txtIMEISourceName
Height = 285
Left = 240
TabIndex = 16
Text = "Text1"
Top = 3930
Width = 3015
End
Begin MSDBGrid.DBGrid DBGrid1
Bindings = "GinwaveIMEI&NetTool.frx":0000
Height = 1575
Left = 240
OleObjectBlob = "GinwaveIMEI&NetTool.frx":0014
TabIndex = 15
Top = 4440
Width = 7215
End
Begin VB.TextBox txtSN
Height = 285
Left = 1200
TabIndex = 14
Text = "Text1"
Top = 1320
Width = 2295
End
Begin VB.CommandButton cmdLast
Caption = "--->||"
Height = 255
Left = 2760
TabIndex = 12
Top = 1800
Width = 735
End
Begin VB.CommandButton cmdNext
Caption = "----->"
Height = 255
Left = 2160
TabIndex = 11
Top = 2160
Width = 735
End
Begin VB.CommandButton cmdPrevious
Caption = "<-----"
Height = 255
Left = 1080
TabIndex = 10
Top = 2160
Width = 735
End
Begin VB.CommandButton cmdFirst
Caption = "||<---"
Height = 255
Left = 600
TabIndex = 9
Top = 1800
Width = 735
End
Begin VB.TextBox txtIMEI
Height = 285
Left = 1200
TabIndex = 8
Text = "Text1"
Top = 960
Width = 2295
End
Begin VB.TextBox txtLicence
Height = 285
Left = 1200
TabIndex = 7
Text = "Text1"
Top = 600
Width = 2295
End
Begin VB.TextBox txtItemNo
Height = 285
Left = 1200
TabIndex = 6
Text = "Text1"
Top = 240
Width = 2295
End
Begin VB.CommandButton cmdUpdate
Caption = "&Update"
Height = 300
Left = 360
TabIndex = 5
Top = 2640
Width = 735
End
Begin VB.CommandButton cmdClearAll
Caption = "&ClearAll"
Height = 300
Left = 2760
TabIndex = 4
Top = 2640
Width = 735
End
Begin VB.CommandButton cmdDelete
Caption = "&Delete"
Height = 300
Left = 1560
TabIndex = 3
Top = 2640
Width = 735
End
Begin VB.Data Data1
Align = 2 'Align Bottom
Connect = "Access"
DatabaseName = "E:\VB works\Database\IMEIRecords.mdb"
DefaultCursorType= 0 'DefaultCursor
DefaultType = 2 'UseODBC
Enabled = 0 'False
EOFAction = 2 'Add New
Exclusive = 0 'False
Height = 345
Left = 0
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "IMEIRecords"
Top = 5940
Visible = 0 'False
Width = 7635
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "Invalid Messages:"
Height = 195
Left = 4080
TabIndex = 22
Top = 120
Width = 1275
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "IMEI Records Target Database:"
Height = 195
Left = 4320
TabIndex = 19
Top = 3720
Width = 2265
End
Begin VB.Label Label2
Caption = "IMEI Records text source:"
Height = 255
Left = 240
TabIndex = 17
Top = 3720
Width = 2055
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "SN:"
Height = 195
Left = 360
TabIndex = 13
Top = 1320
Width = 270
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "IMEI:"
Height = 195
Index = 2
Left = 360
TabIndex = 2
Top = 945
Width = 375
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "Licence:"
Height = 195
Index = 1
Left = 360
TabIndex = 1
Top = 615
Width = 615
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "ITem No:"
Height = 195
Index = 0
Left = 360
TabIndex = 0
Top = 300
Width = 660
End
End
Attribute VB_Name = "frmmain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Public lRecordCounter As Long
Public sIMEITemp As String
Public sSNTemp As String
Public sLicenceTemp As String
Private Sub cmdClearAll_Click()
Dim l As Long
Dim lTotal As Long
Data1.Recordset.MoveLast
lTotal = Data1.Recordset.RecordCount
Data1.Recordset.MoveFirst
Do While Data1.Recordset.EOF = False
Data1.Recordset.Delete
Data1.Recordset.MoveNext
Loop
End Sub
'Private Sub cmdAdd_Click()
' Data1.Recordset.AddNew
'End Sub
Private Sub cmdDelete_Click()
'this may produce an error if you delete the last
'record or the only record in the recordset
Data1.Recordset.Delete
Data1.Recordset.MoveNext
End Sub
Private Sub cmdFirst_Click()
Data1.Recordset.MoveFirst
End Sub
Private Sub cmdLast_Click()
Data1.Recordset.MoveLast
End Sub
Private Sub cmdNext_Click()
Dim iRecordNo As Integer
On Error GoTo Err1
iRecordNo = Data1.Recordset.AbsolutePosition
If iRecordNo < 0 Then Exit Sub
Data1.Recordset.MoveNext
iRecordNo = Data1.Recordset.AbsolutePosition
If iRecordNo < 0 Then
Data1.Recordset.AddNew
End If
Err1:
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -