VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Very basic code for a simple calculator

by dr bone (3 Submissions)
Category: Math/Dates
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 31st December 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Very basic code for a simple calculator

API Declarations


call command1(*)command2(-)command3(+)command4(\)note \ is a back slash for devide

Rate Very basic code for a simple calculator



msgbox(text1.text*text2.text)

private sub command2_()
msgbox(text1.text-text2.text)

private sub command3_()
dim x as integer
x=val(text1.text)
dim y as integer
y=val(text2.text)
msgbox(x+y)
'and there you have the code to make a simple calculator

Download this snippet    Add to My Saved Code

Very basic code for a simple calculator Comments

No comments have been posted about Very basic code for a simple calculator. Why not be the first to post a comment about Very basic code for a simple calculator.

Post your comment

Subject:
Message:
0/1000 characters