📄 tjrqform.frm
字号:
VERSION 5.00
Object = "{C932BA88-4374-101B-A56C-00AA003668DC}#1.1#0"; "MSMASK32.OCX"
Begin VB.Form TjRqForm
AutoRedraw = -1 'True
BackColor = &H00400040&
BorderStyle = 3 'Fixed Dialog
ClientHeight = 840
ClientLeft = 45
ClientTop = 45
ClientWidth = 5775
ControlBox = 0 'False
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 840
ScaleWidth = 5775
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton CloseForm
Cancel = -1 'True
Caption = "放弃"
Height = 405
Left = 4650
TabIndex = 3
Top = 210
Width = 810
End
Begin VB.CommandButton Sure
Caption = "确认"
Default = -1 'True
Height = 405
Left = 3750
TabIndex = 2
Top = 210
Width = 810
End
Begin MSMask.MaskEdBox Rqtxt
Height = 285
Left = 2160
TabIndex = 1
ToolTipText = "年年-月月-日日"
Top = 270
Width = 1170
_ExtentX = 2064
_ExtentY = 503
_Version = 327680
MaxLength = 8
Mask = "##-##-##"
PromptChar = "_"
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "请输入要统计的日期"
ForeColor = &H0080FFFF&
Height = 180
Left = 375
TabIndex = 0
Top = 330
Width = 1620
End
End
Attribute VB_Name = "TjRqForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CloseForm_Click()
Unload Me
End Sub
Private Sub Sure_Click()
If Val(Rqtxt.Text) = 0 Then
Rqtxt.SetFocus
Exit Sub
End If
If Val(Right(Trim(Rqtxt.Text), 2)) > 31 Or Val(Right(Trim(Rqtxt.Text), 2)) < 0 Then
MsgBox "日份有错误!请修改!"
Exit Sub
End If
Dim Str
Str = Right(Trim(Rqtxt.Text), 5)
If Val(Left(Str, 2)) > 12 Or Val(Left(Str, 2)) < 0 Then
MsgBox "月份有错误!请修改!"
Exit Sub
End If
TjXiaoshou.RqHide.Text = Rqtxt.Text
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -