📄 修改网址信息.frm
字号:
Width = 90
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "网站名称:"
ForeColor = &H00C00000&
Height = 180
Left = 300
TabIndex = 21
Top = 360
Width = 900
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "识别码:"
ForeColor = &H00C00000&
Height = 180
Left = 480
TabIndex = 20
Top = 705
Width = 720
End
Begin VB.Label Label3
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "网络地址:"
ForeColor = &H00C00000&
Height = 180
Left = 300
TabIndex = 19
Top = 1050
Width = 900
End
Begin VB.Label Label4
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "网站性质:"
ForeColor = &H00C00000&
Height = 180
Left = 300
TabIndex = 18
Top = 1440
Width = 900
End
Begin VB.Label Label5
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "所属类别:"
ForeColor = &H00C00000&
Height = 180
Left = 300
TabIndex = 17
Top = 1785
Width = 900
End
Begin VB.Label Label6
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "登录用户名:"
ForeColor = &H00C00000&
Height = 180
Left = 4305
TabIndex = 16
Top = 1440
Width = 1080
End
Begin VB.Label Label7
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "登录密码:"
ForeColor = &H00C00000&
Height = 180
Left = 4485
TabIndex = 15
Top = 1785
Width = 900
End
Begin VB.Label Label8
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "网站摘要:"
ForeColor = &H00C00000&
Height = 180
Left = 300
TabIndex = 14
Top = 2160
Width = 900
End
End
Begin CSCommand.Command Command1
Height = 390
Left = 6255
TabIndex = 0
Top = 4155
Width = 1080
_ExtentX = 1905
_ExtentY = 688
IconAlign = 0
Icon = "修改网址信息.frx":005A
Caption = "保存 &S"
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 VB.Label Label9
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "* 为必填内容"
ForeColor = &H00C00000&
Height = 180
Left = 4785
TabIndex = 22
Top = 4290
Width = 1260
End
End
Attribute VB_Name = "FrmUrlsEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
'人人为我,我为人人
'枕善居收藏整理
'发布日期:2007/12/24
'描 述:商务名片及客户资料管理系统 Ver 1.73
'网 站:http://www.Mndsoft.com/ (VB6源码博客)
'网 站:http://www.VbDnet.com/ (VB.NET源码博客,主要基于.NET2005)
'e-mail :Mndsoft@163.com
'e-mail :Mndsoft@126.com
'OICQ :88382850
' 如果您有新的好的代码别忘记给枕善居哦!
'****************************************************************************
Option Explicit
Private Sub Command1_Click()
If Len(Trim(Text6.Text)) > 700 Then
MsgBox "备注信息文字内容过长,请保持在700字范围之内。", vbInformation, "文字内容过长"
Text6.SetFocus
Exit Sub
End If
If Val(Trim(Text11.Text)) < 1 Then
MsgBox "程序解析过来的ID号小于1,无法继续操作.", vbInformation, "错误"
Exit Sub
End If
Dim db As Database
Dim rs As Recordset
Set db = OpenDatabase(MdbPath)
Set rs = db.OpenRecordset("select * from urls where id = " & Trim(Text11.Text))
If rs.RecordCount = 0 Then
MsgBox "程序按照解析出来的 ID 号在数据库中没有找到目标数据,可能该数据已经被删除了,这也可能意味着数据库的部分数据已经紊乱.", vbInformation, "错误"
rs.Close
db.Close
Set rs = Nothing
Set db = Nothing
ElseIf rs.RecordCount > 0 Then
rs.MoveLast
rs.MoveFirst
If rs.RecordCount = 1 Then
rs.Edit
rs!网址名称 = Trim(Text1.Text)
rs!助记码 = Trim(Text2.Text)
rs!网络地址 = Trim(Text3.Text)
rs!登录用户名 = Trim(Text4.Text)
rs!登录密码 = Trim(Text5.Text)
rs!网站摘要 = Trim(Text6.Text)
rs!所属类别 = Val(Trim(Text10.Text))
rs!网站性质 = Val(Trim(Text9.Text))
rs.Update
rs.Close
db.Close
Set rs = Nothing
Set db = Nothing
MsgBox "网址修改成功!", vbInformation, "修改网址"
ElseIf rs.RecordCount > 1 Then
MsgBox "程序按照解析出来的 ID 号在数据库中找到多个目标数据,这也可能意味着数据库的部分数据已经紊乱,修改数据库的操作没有被执行。", vbInformation, "错误"
rs.Close
db.Close
Set rs = Nothing
Set db = Nothing
End If
End If
If form12show = True Then
ShowAllUrls (Form12.Label1.Caption)
Form12.MSFlexGrid1.Refresh
End If
Unload Me
End Sub
Private Sub Command2_Click()
Load xingzhi
xingzhi.Show
End Sub
Private Sub Command3_Click()
Load leibie
leibie.Show
End Sub
Private Sub Form_Load()
Me.Icon = MDIForm1.Icon
Me.BackColor = FormBackColor: Me.Frame1.BackColor = Me.BackColor
Me.Height = 5280: Me.Width = 7860: Me.Text1.Text = "": Me.Text2.Text = "": Text10.Text = ""
Me.Text4.Text = "": Me.Text5.Text = ""
Me.Text6.Text = "": Me.Text7.Text = "": Me.Text8.Text = "": Text9.Text = ""
FrmUrlsEditShow = True
End Sub
Private Sub Form_Unload(Cancel As Integer)
FrmUrlsEditShow = False
End Sub
Private Sub Text1_Change()
Text2.Text = UCase(AutoPY1.AutoPY(Trim(Text1.Text)))
End Sub
Private Sub Text2_LostFocus()
Text2.Text = Trim(UCase(Text2.Text))
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -