📄 par ou impar.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BorderStyle = 1 'Fixed Single
Caption = "Par ou Impar"
ClientHeight = 2355
ClientLeft = 45
ClientTop = 435
ClientWidth = 3090
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2355
ScaleWidth = 3090
StartUpPosition = 3 'Padr鉶 Windows
Begin VB.CommandButton Command1
Caption = "Verificar"
Height = 495
Left = 720
TabIndex = 1
Top = 1200
Width = 1575
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "Trebuchet MS"
Size = 14.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 960
TabIndex = 0
Top = 480
Width = 1095
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Function E_Par(valor As Double) As Boolean
If valor = 2 Then
E_Par = True
End If
Do While valor >= 0
valor = valor - 2
If valor = 0 Then
E_Par = True
End If
Loop
End Function
Private Sub Command1_Click()
If Not Trim(Text1.Text) = Space(0) Then
If E_Par(Text1.Text) Then
MsgBox "O n鷐ero
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -