VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Very basic calculator. Has add, subtract, multiply, & divide functions.

by Prince Valiant (6 Submissions)
Category: Math/Dates
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 9th June 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Very basic calculator. Has add, subtract, multiply, & divide functions.

Rate Very basic calculator. Has add, subtract, multiply, & divide functions.



'If chkCheckBox1 is checked, then add the values of _
txtText1.text and txtText2.text together.
If chkCheckBox1.Value = 1 Then
lblLabel1.Caption = Val(txtText1.Text) + _
Val(txtText2.Text)
End If

'If chkCheckBox1 is checked, then subtract the values _
_ txtText1.text and txtText2.text from each other.
If chkCheckBox2.Value = 1 Then
lblLabel2.Caption = Val(txtText1.Text) - _
Val(txtText2.Text)
End If

'If chkCheckBox1 is checked, then multiply the values _
txtText1.text and txtText2.text together.
If chkCheckBox3.Value = 1 Then
lblLabel3.Caption = Val(txtText1.Text) * _
Val(txtText2.Text)
End If

'If chkCheckBox1 is checked, then divide the value of _
txtText1.text by the value of  txtText2.text.
If chkCheckBox4.Value = 1 Then
lblLabel4.Caption = Val(txtText1.Text) / Val(txtText2.Text)
End If
End Sub



Download this snippet    Add to My Saved Code

Very basic calculator. Has add, subtract, multiply, & divide functions. Comments

No comments have been posted about Very basic calculator. Has add, subtract, multiply, & divide functions.. Why not be the first to post a comment about Very basic calculator. Has add, subtract, multiply, & divide functions..

Post your comment

Subject:
Message:
0/1000 characters