📄 tjrqform2.frm
字号:
VERSION 5.00
Object = "{C932BA88-4374-101B-A56C-00AA003668DC}#1.1#0"; "MSMASK32.OCX"
Begin VB.Form TjRqForm2
BackColor = &H00400040&
BorderStyle = 3 'Fixed Dialog
ClientHeight = 1185
ClientLeft = 45
ClientTop = 45
ClientWidth = 3975
ControlBox = 0 'False
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1185
ScaleWidth = 3975
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton Closeform
Cancel = -1 'True
Caption = "放弃"
Height = 330
Left = 2850
TabIndex = 5
Top = 645
Width = 885
End
Begin VB.CommandButton Sure
Caption = "确认"
Height = 330
Left = 2850
TabIndex = 4
Top = 255
Width = 885
End
Begin MSMask.MaskEdBox Rqtxt2
Height = 285
Left = 1200
TabIndex = 1
Top = 645
Width = 1365
_ExtentX = 2408
_ExtentY = 503
_Version = 327680
MaxLength = 8
Mask = "##-##-##"
PromptChar = "_"
End
Begin MSMask.MaskEdBox RQtxt1
Height = 285
Left = 1200
TabIndex = 0
Top = 255
Width = 1365
_ExtentX = 2408
_ExtentY = 503
_Version = 327680
MaxLength = 8
Mask = "##-##-##"
PromptChar = "_"
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "结束日期:"
ForeColor = &H0080FFFF&
Height = 180
Left = 255
TabIndex = 3
Top = 675
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "开始日期:"
ForeColor = &H0080FFFF&
Height = 180
Left = 255
TabIndex = 2
Top = 300
Width = 900
End
End
Attribute VB_Name = "TjRqForm2"
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 RQtxt1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Rqtxt2.SetFocus
End If
End Sub
Private Sub Rqtxt2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Sure.SetFocus
End If
End Sub
Private Sub Sure_Click()
If Val(RQtxt1.Text) = 0 Or Val(Rqtxt2.Text) = 0 Then
RQtxt1.SetFocus
Exit Sub
End If
If Val(Right(Trim(RQtxt1.Text), 2)) > 31 Or Val(Right(Trim(RQtxt1.Text), 2)) < 0 Then
MsgBox "日份有错误!请修改!"
Exit Sub
End If
Dim Str
Str = Right(Trim(RQtxt1.Text), 5)
If Val(Left(Str, 2)) > 12 Or Val(Left(Str, 2)) < 0 Then
MsgBox "月份有错误!请修改!"
Exit Sub
End If
'终止日期
If Val(Right(Trim(Rqtxt2.Text), 2)) > 31 Or Val(Right(Trim(Rqtxt2.Text), 2)) < 0 Then
MsgBox "日份有错误!请修改!"
Exit Sub
End If
Str = Right(Trim(Rqtxt2.Text), 5)
If Val(Left(Str, 2)) > 12 Or Val(Left(Str, 2)) < 0 Then
MsgBox "月份有错误!请修改!"
Exit Sub
End If
TjXiaoshou.RqHide.Text = RQtxt1.Text
TjXiaoshou.RQHide2.Text = Rqtxt2.Text
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -