📄 form3.frm
字号:
VERSION 5.00
Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "COMCTL32.OCX"
Begin VB.Form Form3
Caption = "项目属性"
ClientHeight = 1665
ClientLeft = 60
ClientTop = 345
ClientWidth = 6270
LinkTopic = "Form3"
ScaleHeight = 1665
ScaleWidth = 6270
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton Command2
Caption = "退出"
Height = 285
Left = 5040
TabIndex = 12
Top = 90
Width = 1185
End
Begin VB.CommandButton Command1
Caption = "修改"
Height = 285
Left = 3750
TabIndex = 11
Top = 90
Width = 1125
End
Begin ComctlLib.StatusBar StatusBar1
Align = 2 'Align Bottom
Height = 255
Left = 0
TabIndex = 10
Top = 1410
Width = 6270
_ExtentX = 11060
_ExtentY = 450
SimpleText = ""
_Version = 327682
BeginProperty Panels {0713E89E-850A-101B-AFC0-4210102A8DA7}
NumPanels = 1
BeginProperty Panel1 {0713E89F-850A-101B-AFC0-4210102A8DA7}
TextSave = ""
Key = ""
Object.Tag = ""
EndProperty
EndProperty
End
Begin VB.TextBox Text1
Appearance = 0 'Flat
Height = 255
Index = 4
Left = 1200
TabIndex = 9
Text = "Text1"
Top = 1080
Width = 5025
End
Begin VB.TextBox Text1
Appearance = 0 'Flat
Height = 285
Index = 3
Left = 1200
TabIndex = 8
Text = "Text1"
Top = 810
Width = 2385
End
Begin VB.TextBox Text1
Appearance = 0 'Flat
Height = 255
Index = 2
Left = 1200
TabIndex = 7
Text = "Text1"
Top = 570
Width = 2385
End
Begin VB.TextBox Text1
Appearance = 0 'Flat
Height = 255
Index = 1
Left = 1200
TabIndex = 6
Text = "Text1"
Top = 330
Width = 2385
End
Begin VB.TextBox Text1
Appearance = 0 'Flat
Height = 255
Index = 0
Left = 1200
TabIndex = 5
Text = "Text1"
Top = 90
Width = 2385
End
Begin VB.Label Label5
Caption = "备注:"
Height = 255
Left = 600
TabIndex = 4
Top = 1080
Width = 555
End
Begin VB.Label Label4
Caption = "建项日期:"
Height = 225
Left = 240
TabIndex = 3
Top = 840
Width = 945
End
Begin VB.Label Label3
Caption = "项目名称:"
Height = 255
Left = 240
TabIndex = 2
Top = 570
Width = 915
End
Begin VB.Label Label2
Caption = "所属项目:"
Height = 225
Left = 240
TabIndex = 1
Top = 330
Width = 945
End
Begin VB.Label Label1
Caption = "项目号:"
Height = 225
Left = 420
TabIndex = 0
Top = 90
Width = 735
End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
sSql = "update project set 名称='" + Text1(2).Text + "' where ID=" + sCurNode
cn.Execute sSql
sSql = "update project set 建立日期='" + Text1(3).Text + "' where ID=" + sCurNode
cn.Execute sSql
sSql = "update project set 备注='" + Text1(4).Text + "' where ID=" + sCurNode
cn.Execute sSql
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
For i = 0 To 4
Text1(i).Text = ""
Next i
sSql = "select * from Project where ID=" + sCurNode
RS.Open sSql, cn, adOpenKeyset, adLockPessimistic
n = rsLen(RS)
If n = 0 Then
RS.Close
Exit Sub
End If
Text1(0).Text = RS("ID").Value
Text1(1).Text = RS("PID").Value
Text1(2).Text = RS("名称").Value
Text1(3).Text = RS("建立日期").Value
Text1(4).Text = RS("备注").Value
RS.Close
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -