Thursday, March 6, 2014

Konversi Suhu




Private Sub CmdHapus_Click()
TxtCelcius = ""
TxtReamur = ""
TxtFahrenheit = ""
TxtKelvin = ""
TxtCelcius.SetFocus
End Sub

Private Sub CmdHitung_Click()
Dim C, R, F, K As Integer
C = TxtCelcius
R = (4 / 5) * C
F = (9 / 5) * C + 32
K = C + 273
TxtReamur = R
TxtFahrenheit = F
TxtKelvin = K
End Sub

Private Sub CmdKeluar_Click()
DoCmd.Save
DoCmd.Close
End Sub

No comments:

Post a Comment