📄 frmroleedit.frm
字号:
VERSION 5.00
Begin VB.Form FrmRoleEdit
Caption = "编辑角色信息"
ClientHeight = 1890
ClientLeft = 60
ClientTop = 345
ClientWidth = 4800
LinkTopic = "Form2"
ScaleHeight = 1890
ScaleWidth = 4800
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Cmd_Cancel
Caption = "取 消"
Height = 450
Left = 3000
TabIndex = 5
Top = 1320
Width = 1095
End
Begin VB.CommandButton Cmd_OK
Caption = "确 定"
Height = 450
Left = 840
TabIndex = 4
Top = 1320
Width = 1095
End
Begin VB.TextBox txtTask
Height = 330
Left = 1320
TabIndex = 3
Top = 720
Width = 3015
End
Begin VB.TextBox txtRoleName
Height = 330
Left = 1320
TabIndex = 1
Top = 172
Width = 3015
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "工作任务"
Height = 195
Left = 360
TabIndex = 2
Top = 795
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "角色名称"
Height = 195
Left = 360
TabIndex = 0
Top = 240
Width = 720
End
End
Attribute VB_Name = "FrmRoleEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Modify As Boolean
Public OriRId As Long
Private Sub Cmd_Cancel_Click()
Unload Me
End Sub
Private Sub Cmd_OK_Click()
If Trim(txtRoleName) = "" Then
MsgBox "请输入角色名称"
txtRoleName.SetFocus
Exit Sub
End If
If Trim(txtTask) = "" Then
MsgBox "请输入角色任务"
txtTask.SetFocus
Exit Sub
End If
With MyRole
.RoleName = Trim(txtRoleName)
.RoleTask = Trim(txtTask)
If Modify Then
.Update (OriRId)
MsgBox "修改成功"
Else
.Insert
MsgBox "添加成功"
End If
End With
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -