Professional Documents
Culture Documents
Codigo Del Proyecto
Codigo Del Proyecto
Dim A As Integer
A = Val(Text1)
MsgBox ("SU TEMPERATURA ES:" & Format(A) & "°C")
If Option1 = True Then
If A > 50 Then
Text2 = Text2 & "CALIENTE " & vbCrLf
Image3.Visible = True
Image2.Visible = False
Image1.Visible = False
ElseIf A < 50 And A > 20 Then
Text2 = Text2 & "TIBIO " & vbCrLf
Image2.Visible = True
Image1.Visible = False
Image3.Visible = False
Else
Text2 = Text2 & " FRIA " & vbCrLf
Image1.Visible = True
Image2.Visible = False
Image3.Visible = False
End If
Else: Option2 = True
If A > 40 Then
Text2 = Text2 & "CALIENTE" & vbCrLf
Image3.Visible = True
Image2.Visible = False
Image1.Visible = False
ElseIf A < 40 And A > 10 Then
Text2 = Text2 & "TIBIA " & vbCrLf
Image2.Visible = True
Image1.Visible = False
Image3.Visible = False
Else
Text2 = Text2 & "FRIA" & vbCrLf
Image1.Visible = True
Image2.Visible = False
Image3.Visible = False
End If
End If
End Sub