📄 frmmembertypeedit.frm
字号:
VERSION 5.00
Begin VB.Form FrmMemberTypeEdit
Caption = "编辑会员类型信息"
ClientHeight = 2040
ClientLeft = 60
ClientTop = 345
ClientWidth = 3180
LinkTopic = "Form1"
ScaleHeight = 2040
ScaleWidth = 3180
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Cmd_Cancel
Caption = "取 消"
Height = 375
Left = 1800
TabIndex = 5
Top = 1440
Width = 975
End
Begin VB.CommandButton Cmd_OK
Caption = "确 定"
Height = 375
Left = 480
TabIndex = 4
Top = 1440
Width = 975
End
Begin VB.TextBox txtRate
BeginProperty DataFormat
Type = 1
Format = "0.00"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 1
EndProperty
Height = 330
Left = 1440
TabIndex = 3
Top = 960
Width = 1095
End
Begin VB.TextBox txtTypeName
Height = 330
Left = 1440
TabIndex = 2
Top = 360
Width = 1095
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "享受折扣"
Height = 180
Left = 480
TabIndex = 1
Top = 960
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "类型名称"
Height = 180
Left = 480
TabIndex = 0
Top = 360
Width = 720
End
End
Attribute VB_Name = "FrmMemberTypeEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Modify As Boolean
Public OriId As Long
Private Sub Cmd_Cancel_Click()
Unload Me
End Sub
Private Sub Cmd_OK_Click()
If Len(Trim(txtTypeName)) = 0 Then
MsgBox ("请输入会员类型名称")
txtTypeName.SetFocus
Exit Sub
End If
If Val(txtRate) <= 0 Or Val(txtRate) > 1 Then
MsgBox ("折扣率在0到1之间")
txtRate.SetFocus
Exit Sub
End If
With MyMemberType
.TypeName = MakeStr(txtTypeName)
.Rate = Val(txtRate)
If Modify = False Then
.Insert
Else
.Update (OriId)
End If
End With
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -