VERSION 5.00
Begin VB.Form Form1
Caption = "P135-4"
ClientHeight = 4170
ClientLeft = 6030
ClientTop = 4140
ClientWidth = 6855
LinkTopic = "Form1"
ScaleHeight = 4170
ScaleWidth = 6855
Begin VB.TextBox Text3
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1800
TabIndex = 4
Top = 1920
Width = 2055
End
Begin VB.TextBox Text2
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1800
TabIndex = 3
Top = 1200
Width = 2055
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1800
TabIndex = 2
Top = 480
Width = 2055
End
Begin VB.CommandButton Command2
Caption = "Run"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 5520
TabIndex = 1
Top = 2760
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "End"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 5520
TabIndex = 0
Top = 3360
Width = 1215
End
Begin VB.Label lbl
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 360
TabIndex = 8
Top = 3000
Width = 4815
End
Begin VB.Label Label3
Caption = "Day:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 480
TabIndex = 7
Top = 2040
Width = 975
End
Begin VB.Label Label2
Caption = "Mount:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 480
TabIndex = 6
Top = 1320
Width = 975
End
Begin VB.Label Label1
Caption = "Year:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 480
TabIndex = 5
Top = 600
Width = 975
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim inta, intb, intc As Integer
Dim intm As Date
Private Sub Command1_Click()
inta = Val(Text1.Text)
If inta < 1300 Or inta > 1388 Then
lbl.Caption = "Enter the year between 1300 to 1388"
End If
intb = Val(Text2.Text)
If intb < 1 Or intb > 12 Then
lbl.Caption = "Enter the mount between 1 to 12"
End If
intc = Val(Text3.Text)
If intc < 1 Or intc > 31 Then
lbl.Caption = "Enter the day between 1 to 31"
End If
End
End Sub
Private Sub Command2_Click()
'intyear = 1388 - inta
intm = Date
Print intm
End Sub