Uploaded by Pres Tigbawan

VB Code

advertisement
VB Code
Dim sd As Integer
Dim operator As Integer
Dim result As Integer
Private Sub caldelx_Click()
result12 = (Val(txtinvel.Text) ^ 2) + (2 * (Val(txtacc.Text) * Val(txtout2.Text)))
txtout3 = txtout3 & result12
End Sub
Private Sub cmdcaldelx_Click()
result1 = Val(txtinvel.Text) * Val(txttime)
result2 = Val(txtacc.Text) * (Val(txttime.Text)) ^ 2
result3 = Val(result2 * 1 / 2)
result4 = Val(result3) + Val(result1)
txtout2 = txtout2 & result4
End Sub
Private Sub cmdCalVf_Click(Index As Integer)
resultvf = Val(txtinvel.Text) + (Val(txtacc.Text) * Val(txttime.Text))
txtout1 = txtout1 & resultvf
End Sub
Private Sub txtacc_Change()
sd = txtacc.Text
End Sub
Private Sub txtout2_Change()
txtout2 = txtout2 & result4
sd = txtout2
End Sub
Private Sub txtout3_Change()
txtout3 = txtout3 & result12
End Sub
Private Sub txttime_Change()
sd = txttime.Text
End Sub
Private Sub txtinvel_Change()
sd = txtinvel.Text
End Sub
Private Sub txtout1_Change()
txtout1 = txtout1 & resultvf
End Sub
Download